- ad/filter file
- 19 char line[80];
- 20 while(fgets(line, 80, in) != NULL){
- 21 inventoryItemFromString(line);
- 22 }
- 23
- 24 //Close file streams
- 25 fclose(in);
- 26 fclose(out);
- 27
- 28 }
- 29
- 30 Inventory inventoryItemFromString(char *string){
- 31 char *pch = strtok(string," ");
- 32 Inventory invl;
- 33 do {
- 34 printf(">%s",pch);
Untitled
Posted on March 10, 2010, 5:11 am UTC anonymously (6 months ago)Code (highlighted for Text)