home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fish 'n' More 1
/
FishNMoreVol1.bin
/
more
/
code_examples
/
librar
/
freed.c
< prev
next >
Wrap
Text File
|
1989-02-08
|
688b
|
30 lines
/*--------------------------------------*/
/* */
/* FREED(X,X,X) */
/* */
/* Functionality: */
/* Reads in a character array from */
/* a file. */
/* Arguments: */
/* 0: The file descriptor */
/* 1: The character array. */
/* 2: The length of the array. */
/* Returns: The number of bytes actually*/
/* read from the file. */
/* Author: John Callicotte */
/* Date created/modified: 09/01/88 */
/* */
/*--------------------------------------*/
# include "stdio.h"
void freed(fd,r,b)
char r[];
int b;
FILE *fd;
{
int j;
for (j=0;j<b;j++) /* Read the array in */
r[j]=getc(fd);
r[b]=0;
}