Changeset 821 for soft/giet_vm/applications/rosenfeld/nrc2/src/nrio2.c
- Timestamp:
- May 6, 2016, 3:06:29 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/applications/rosenfeld/nrc2/src/nrio2.c
r805 r821 1001 1001 char buffer[80]; 1002 1002 int i; 1003 (void) gris; 1003 1004 1004 1005 // open file 1005 1006 fd = open(filename, O_RDONLY); 1006 1007 if (fd < 0) { 1007 printf("*** Error: Can't open file %s in %s.\n", filename, __func__); 1008 printf("\n*** Error: Can't open file %s in %s.\n", filename, __func__); 1009 exit(1); 1008 1010 } 1009 1011 … … 1046 1048 int i; 1047 1049 1050 //fd = open(filename, O_WRONLY | O_TRUNC | O_CREAT); 1048 1051 fd = open(filename, O_TRUNC | O_CREAT); 1049 1052 if (fd < 0) { 1050 printf("*** Error: Impossible to open file %s in %s\n", filename, __func__); 1053 printf("\n*** Error: Impossible to open file %s in %s\n", filename, __func__); 1054 return; 1051 1055 } 1052 1056
Note: See TracChangeset
for help on using the changeset viewer.