- Timestamp:
- Nov 30, 2012, 10:28:06 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20120905/Ohana/src/libohana/src/string.c
r34468 r34752 130 130 status = EOF + 1; 131 131 132 for (i = 0, c = 0; (c != '\n') && ( status != EOF); i++) {132 for (i = 0, c = 0; (c != '\n') && (c != '\r') && (status != EOF); i++) { 133 133 status = fscanf (f, "%c", &c); 134 134 line[i] = c; … … 154 154 status = EOF + 1; 155 155 156 for (i = 0, c = 0; (c != '\n') && ( status != EOF) && (i < maxlen); i++) {156 for (i = 0, c = 0; (c != '\n') && (c != '\r') && (status != EOF) && (i < maxlen); i++) { 157 157 status = fscanf (f, "%c", &c); 158 158 line[i] = c;
Note:
See TracChangeset
for help on using the changeset viewer.
