Category : Miscellaneous Language Source Code
Archive   : MTD.ZIP
Filename : MAKETEMP.C

 
Output of file : MAKETEMP.C contained in archive : MTD.ZIP
/*
** Purpose: Make test files in TEMP subdirectory.
** Author: (c) 1990 by Tom Swan. All rights reserved.
*/

/* ---- Include header file */
#include

/* ---- Function prototype */
void makefile(char *fname);

main()
{
makefile("temp\\test.007");
makefile("temp\\zzzzzzzz.zzz");
makefile("temp\\gggggggg.ggg");
makefile("temp\\test.020");
makefile("temp\\s.z");
makefile("temp\\mmmmmmmm.mmm");
makefile("temp\\ssssssss.sss");
makefile("temp\\a.a");
makefile("temp\\test.001");
makefile("temp\\aaaaaaaa.aaa");
makefile("temp\\b");
}

/* ---- Create a file named fname */
void makefile(char *fname)
{
FILE *f;

if ((f = fopen(fname, "w")) == NULL)
printf("%s%s\n", "Error opening ", fname );
else
fclose(f);
}



  3 Responses to “Category : Miscellaneous Language Source Code
Archive   : MTD.ZIP
Filename : MAKETEMP.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: http://www.os2museum.com/wp/mtswslnk/