/* tounix.c * remove this program converts DOS files to Unix files * typical execution in a directory tounix * converts all files * run this on the Unix side, not on DOS */ #include #include void main(int argc, char *argv[]) { FILE *inp; FILE *tmp; int achar; int cr=13; int lchar=15; int esent=255; int mone=-1; int i; char tmpName[] = "ToUnix.Tmp"; if (argc < 2) { printf("need file(s) to remove \n"); exit(1); } remove(tmpName); for (i=1; i