home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / pctchnqs / 1990 / number3 / twobyte.c < prev   
Text File  |  1990-05-21  |  376b  |  16 lines

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