#define MAXNUM 1266 main() { int fd; /* Out descriptor */ int i; int length; short buffer[MAXNUM]; short chk[MAXNUM]; if((fd=creat("test.dat",0,1)) < 0) { printf("Cannot create test.dat\n"); exit(); } for(i=0; i