Changeset 451 for Daodan/src/inifile_test.c
- Timestamp:
- Jul 26, 2009, 2:04:44 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Daodan/src/inifile_test.c
r346 r451 1 1 #include <stdio.h> 2 2 #include <stdbool.h> 3 #include <string.h> 3 4 #include "inifile.h" 4 5 … … 8 9 puts("New Section!"); 9 10 printf("Section: %s Name: %s Value: %s\n", section, name, value); 11 if (!stricmp(name, "cleantest")) 12 printf(" CleanTest: \"%s\" = \"%s\"\n", value, inifile_cleanstr(value)); 13 if (!stricmp(name, "inttest")) 14 printf(" IntTest: %s = %u\n", value, (uint32_t)inifile_parseint(value, false)); 15 if (!stricmp(name, "sinttest")) 16 printf(" IntTest: %s = %d\n", value, (int32_t)inifile_parseint(value, true)); 10 17 return true; 11 18 }
Note:
See TracChangeset
for help on using the changeset viewer.