Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4973 | right-hear | 1 | /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */ |
2 | /* |
||
3 | * D_WITE.C. |
||
4 | * |
||
5 | * Written by Peter Sulyok 1995 |
||
6 | * |
||
7 | * This file is distributed WITHOUT ANY WARRANTY; without even the implied |
||
8 | * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
||
9 | * |
||
10 | */ |
||
11 | |||
12 | #include |
||
13 | #include |
||
14 | #include |
||
15 | #include |
||
16 | |||
17 | unsigned int _dos_write(int handle, const void *buffer, unsigned int count, unsigned int *result) |
||
18 | { |
||
19 | int p; |
||
20 | p=dosemu_write(handle,buffer,count); |
||
21 | if(p==-1) return p; |
||
22 | if(result) *result=p; |
||
23 | return 0; |
||
24 | } |
||
25 |