Changeset d9326ad for tests/copyfile.cfa
- Timestamp:
- Jul 6, 2020, 4:45:15 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 82bbaf4
- Parents:
- 2ed33710
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/copyfile.cfa
r2ed33710 rd9326ad 10 10 // Created On : Fri Jun 19 13:44:05 2020 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Jun 19 17:58:03 202013 // Update Count : 412 // Last Modified On : Sun Jul 5 11:27:43 2020 13 // Update Count : 5 14 14 // 15 15 … … 22 22 23 23 try { 24 choose ( argc ) { 24 choose ( argc ) { // terminate if command-line errors 25 25 case 2, 3: 26 26 open( in, argv[1] ); // open input file first as output creates file 27 27 if ( argc == 3 ) open( out, argv[2] ); // do not create output unless input opens 28 28 case 1: ; // use default files 29 default: 29 default: // wrong number of options 30 30 exit | "Usage" | argv[0] | "[ input-file (default stdin) [ output-file (default stdout) ] ]"; 31 31 } // choose
Note: See TracChangeset
for help on using the changeset viewer.