home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fish 'n' More 1
/
FishNMoreVol1.bin
/
more
/
code_examples
/
librar
/
sfasc2in.c
< prev
next >
Wrap
Text File
|
1989-02-08
|
510b
|
24 lines
/*--------------------------------------*/
/* */
/* SFASC2INT(X,X) */
/* */
/* Converts bytes from a file to an */
/* integer. The first argument is the */
/* file descriptor. The second argument */
/* is the number of bytes to read. */
/* */
/*--------------------------------------*/
# include "stdio.h"
# include "stdlib.h"
sfasc2int(fd,a)
int a;
FILE *fd;
{
char w[20];
int d;
sfreed(fd,w,a);
w[a]=0;
d=atoi(w);
return(d);
}