Ignore:
Timestamp:
Jul 26, 2009, 2:04:44 PM (13 years ago)
Author:
rossy
Message:

bsl thingy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Daodan/src/inifile_test.c

    r346 r451  
    11#include <stdio.h>
    22#include <stdbool.h>
     3#include <string.h>
    34#include "inifile.h"
    45
     
    89                puts("New Section!");
    910        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));
    1017        return true;
    1118}
Note: See TracChangeset for help on using the changeset viewer.