/* sto3.c PEH and RAP Version 1 25/07/07 */ #include #include #include"blimp.h" int main(int argc, char **argv) { FILE *f1, *f2; int i,k; int *gp; if(argc<3) { printf("usage st03 . . . \n"); return 0; } gp=(int*) malloc(GRPSIZ*sizeof(int)); if(gp == NULL) { printf("Error allocating memory\n"); exit(23); } f2 = (FILE*)fopen(argv[argc-1],"w"); if(f2 == NULL) { printf("Error opening output file %s\n",argv[argc-1]); exit(24); } for(i=1;i