Category : Files from Magazines
Archive   : CUJ9208.ZIP
Filename : 1008133A

 
Output of file : 1008133A contained in archive : CUJ9208.ZIP

#define MAX_STRINGS 100
#define SIZE_STRING 100
#define SIZE_ALL_STRINGS 5000
char *get_string(int index)
{
static char *string[MAX_STRINGS];
static char *string_buffer;
static int initialized;
int size;
int total_size = 0;
int count;
FILE *string_file;

if (!initialized)
{
string_buffer = calloc(SIZE_ALL_STRINGS, 1);
string_file = fopen("string.fil","r");
/* Read the file into string_buffer */
string[0] = string_buffer;
size = 0;
for (count = 0; count < MAX_STRINGS; count++)
{
fgets(string_file, string[count], SIZE_STRING);
size = strlen(string[count]);
string[count][size - 1] = '\0';
size--;
total_size += size;
string[count+1] = string_buffer + total_size;
}
initialized = 1;
}
return string[index];
}



  3 Responses to “Category : Files from Magazines
Archive   : CUJ9208.ZIP
Filename : 1008133A

  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/