| 341 | } |
| 342 | |
| 343 | char *makeword(char *line, char stop) { |
| 344 | int x = 0,y; |
| 345 | char *word = (char *) msSmallMalloc(sizeof(char) * (strlen(line) + 1)); |
| 346 | |
| 347 | for(x=0;((line[x]) && (line[x] != stop));x++) |
| 348 | word[x] = line[x]; |
| 349 | |
| 350 | word[x] = '\0'; |
| 351 | if(line[x]) ++x; |
| 352 | y=0; |
| 353 | |
| 354 | while((line[y++] = line[x++])); |
| 355 | return word; |
| 356 | } |
| 357 | |
| 358 | char *fmakeword(FILE *f, char stop, int *cl) { |
| 359 | int wsize; |
no test coverage detected