home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / pctchnqs / 1990 / number3 / fourbyte.c < prev    next >
Text File  |  1990-05-21  |  346b  |  17 lines

  1.  
  2.   char far *Names[ 2000 ];           /* 8000 bytes of storage */
  3.  
  4.   int GetNames( FILE *InFile )
  5.     {
  6.     char StrBuf[ 100 ];
  7.     int Count = 0;
  8.  
  9.     while( fgets( StrBuf, 100, InFile ) != EOF )
  10.       {
  11.       /* save the whole address (4 bytes) */
  12.       Names[ Count++ ] = strdup( StrBuf );
  13.       }
  14.  
  15.     return( Count );
  16.     }
  17.