Category : C Source Code
Archive   : SMALLC.ZIP
Filename : SAMPLE-2.C
Output of file : SAMPLE-2.C contained in archive : SMALLC.ZIP
getname(fname)
char *fname;
{
char *FPA1;
int d,k;
/* copy prefix area to stack segment for easy use */
copyprefix(buffer);
/* 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';
*fname++=':';
}
/* do name next */
k=1;
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!=' ') {
*fname++='.';
k=1;
while((k<=3) & (*FPA1!=' ')) {k++; *fname++=*FPA1++;}
}
*fname=0;
}
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/