// fileposix.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include #include int _tmain(int argc, _TCHAR* argv[]) { #define NUMFILES 2048 FILE **fds=NULL; int i=0; char fname[64]; printf("bitness of binary = %d\n",8*sizeof(char*)); _setmaxstdio(NUMFILES); fds=(FILE**)calloc(NUMFILES,sizeof(FILE*)); if(!fds) { printf("cant calloc memory for %d file handles\n",NUMFILES); exit(1); } printf("about to open files...\n"); for(i=0;i