Changeset 3742
- Timestamp:
- Oct 28, 2009, 12:10:22 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
zzuf/trunk/test/zzcat.c
r3741 r3742 115 115 #if defined HAVE_GETLINE 116 116 case 23: /* getline() and getc() calls */ 117 #if defined HAVE_GETC_UNLOCKED 117 118 case 24: /* getline() and getc_unlocked() calls */ 119 #endif 118 120 stream = fopen(name, "r"); 119 121 if(!stream) 120 122 return EXIT_FAILURE; 121 123 i = 0; 124 #if defined HAVE_GETC_UNLOCKED 122 125 while ((c = (atoi(argv[1]) == 23) ? getc(stream) 123 126 : getc_unlocked(stream)) != EOF) 127 #else 128 while ((c = getc(stream)) != EOF) 129 #endif 124 130 { 125 131 char *line;
Note: See TracChangeset
for help on using the changeset viewer.