home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_09_10
/
phillips.exe
/
MRW.C
< prev
next >
Wrap
C/C++ Source or Header
|
1990-06-24
|
1KB
|
50 lines
/*****************************************************
*
* file c:\lsu\mrw.c
*
* Functions: This file contains
* my_read
* my_write
*
* Purpose: These two functions call the Turbo C
* functions _read and _write. All software
* will use my_read and my_write so that if
* the software is ported to another system
* that uses read and write changing the
* two functions in this file will take care
* of the move.
*
* External Call:
* read
* _write
*
* Modifications:
* 10 June 1987 - created
*
*
************************************************************/
#include "d:\cips\cips.h"
my_read(file_descriptor, buffer, number_of_bytes)
int file_descriptor, number_of_bytes;
char *buffer;
{
int bytes_read;
int read();
bytes_read = read(file_descriptor, buffer, number_of_bytes);
return(bytes_read);
}
my_write(file_descriptor, buffer, number_of_bytes)
int file_descriptor, number_of_bytes;
char *buffer;
{
int bytes_written;
int write();
bytes_written = write(file_descriptor, buffer, number_of_bytes);
return(bytes_written);
}