Google
 

Trailing-Edge - PDP-10 Archives - SRI_NIC_PERM_FS_1_19910112 - c/lib/test/nfiles.c
There are 5 other files named nfiles.c in the archive. Click here to see a list.
#include <stdio.h>

#define MAX	1000

main()
{
    FILE *f[MAX];
    char line[80];
    int i, j;

    for (i = 0; i < MAX; i++) {
	sprintf(line, "test-%03d.out", i);
	if (!(f[i] = fopen(line, "w"))) {
	    printf("\nfailed after %d files\n", i);
	    break;
	} else putchar('.');
    puts("i suggest you type @DEL TEST-0*.* now...");
    }
}