Changeset fa38804 in buchla-68k for libcio/scan.c
- Timestamp:
- 07/14/2017 04:18:35 PM (7 years ago)
- Branches:
- master
- Children:
- ace9ee7
- Parents:
- 1efe224
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcio/scan.c
r1efe224 rfa38804 14 14 static int8_t quit; 15 15 16 /*17 18 */19 20 16 static int32_t getnum(int8_t *list, int8_t *values, int16_t base) 21 17 { … … 58 54 } 59 55 60 /*61 62 */63 64 56 static int16_t skipblk(void) 65 57 { … … 90 82 return(EOF); 91 83 } 92 93 /*94 95 */96 84 97 85 int16_t scanfmt(int16_t (*getsub)(int16_t what), int8_t *fmt, int16_t **args) … … 114 102 }; 115 103 116 /* 117 118 */ 104 119 105 count = 0; 120 106 gsub = getsub; … … 149 135 } 150 136 151 /* 152 153 */ 137 154 138 switch (*fmt++) { 155 139 … … 201 185 202 186 break; 203 /*204 205 */206 187 207 188 #ifdef FLOAT … … 228 209 break; 229 210 #endif 230 231 /*232 233 */234 211 235 212 case '[': … … 285 262 286 263 break; 287 /* 288 289 */ 264 290 265 case 'c': 291 266 if ((c = (*gsub)(0)) EQ EOF) … … 324 299 return(count); 325 300 } 326 327 /*328 329 */330 301 331 302 #ifdef FLOAT … … 371 342 #endif 372 343 373 /*374 375 */376 377 344 int16_t sscanf(int8_t *string, int8_t *fmt, int16_t *args) 378 345 {
Note:
See TracChangeset
for help on using the changeset viewer.