home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fish 'n' More 1
/
FishNMoreVol1.bin
/
more
/
code_examples
/
librar
/
ftrans.c
< prev
next >
Wrap
Text File
|
1989-02-08
|
563b
|
22 lines
/*--------------------------------------*/
/* */
/* FTRANS(X,X,X) */
/* */
/* Transfers data from one file to */
/* another. The first argument is the */
/* sending file descripter. The second */
/* is the receiving file descripter. The*/
/* third argument is the number of bytes*/
/* to transfer. */
/* */
/*--------------------------------------*/
# include "stdio.h"
void ftrans(fd1,fd2,a)
int a;
FILE *fd1,*fd2;
{
int j;
for (j=0;j<a;j++)
putc(getc(fd1),fd2);
}