Category : C Source Code
Archive   : SMALLC.ZIP
Filename : SAMPLE-2.C

Output of file : SAMPLE-2.C contained in archive : SMALLC.ZIP
extern char buffer[256];
char *fname;
char *FPA1;
int d,k;

/* copy prefix area to stack segment for easy use */

/* get name from formatted parameter area 1 in the program
prefix. */

FPA1 = buffer+92; /* offset to parm area 1 in prefix */

/* do drive first */
d = *FPA1++;
if(d!=0) {
if (d==1) *fname++='a';
else *fname++='b';

/* do name next */
while((k<=8) & (*FPA1!=' ')) {k++; *fname++=*FPA1++;}
if(k==1) {*fname=0; return;}
else if(k<=8) FPA1=buffer+92+9; /* offset of extension */

/* do extension next */
if(*FPA1!=' ') {
while((k<=3) & (*FPA1!=' ')) {k++; *fname++=*FPA1++;}

  3 Responses to “Category : C Source Code
Archive   : SMALLC.ZIP
Filename : SAMPLE-2.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: