main( int argc, char **argv ) { short input, output; if( argc < 3 || argc > 3 ) { puts("UNEASY: Will retabulate \"easyride\" text"); puts(""); puts(" Usage: UNEASY iname oname"); puts(" Where: iname = input text file path\\name"); puts(" and: oname = output text file path\\name"); puts(" and: Those can not be the same file !"); puts(""); puts("Now press a key to exit."); Crawcin(); return(0); } input = open( argv[1], 0 ); if( input > 0 ) { output = creat( argv[2], 0 ); if( output > 0 ) { retab(input, output); close(output); } close( input ); } return(0); } /* ends main(argc, argv) */
int main() { char line[MAXLINE]; /* current line */ while(retab(line, MAXLINE) > 0) printf("%s", line); return 0; }