Category : C Source Code
Archive   : CBIBLE.ZIP
Filename : FINDNEXT.C
#include
#include
main()
{
int count;
long totalsize;
struct ffblk fileinfo;
if( findfirst("*.c", &fileinfo, 0) == -1)
{
printf("Unsuccessful findfirst call!\n");
exit(0);
}
printf("Listing of *.c files:\n");
printf("%12s %8ld bytes\n", fileinfo.ff_name,
fileinfo.ff_fsize);
count =1;
totalsize = fileinfo.ff_fsize;
while(findnext(&fileinfo) == 0)
{
count++;
totalsize += fileinfo.ff_size;
/* Now print the name and size of each matching file */
printf("%12s %8ld bytes\n",
fileinfo.ff_name, fileinfo.ff_fsize);
}
printf("\n%d files %ld bytes.\n", count, totalsize);
}
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/