home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
pctchnqs
/
1990
/
number3
/
twobyte.c
< prev
Wrap
Text File
|
1990-05-21
|
376b
|
16 lines
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 );
}