home *** CD-ROM | disk | FTP | other *** search
- unsigned Names[ 2000] ; /* 4000 bytes of storage */
-
- int GetNames( FILE *InFile )
- {
- char StrBuf[ 100 ];
- int Count = 0;
-
- while( fgets( StrBuf, 100, InFile ) != EOF )
- {
- /* save only the segment portion of the address (2 bytes) */
- Names[ Count++ ] = FP_SEG( strdup( StrBuf ) );
- }
-
- return( Count );
- }