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