home *** CD-ROM | disk | FTP | other *** search
- /*--------------------------------------*/
- /* */
- /* 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;
- }