Ignore:
Timestamp:
Jun 10, 2009, 2:40:16 PM (16 years ago)
Author:
rossy
Message:

cheat codes added to [Language]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Daodan/src/inifile_reader.c

    r346 r349  
    66
    77#include "inifile.h"
    8 
     8/*
     9char* inifile_cleanstr(char* str)
     10{
     11        while (isspace(*str))
     12                str++;
     13       
     14        int i;
     15        for (i = 0; str[i]; i ++)
     16        {
     17                if
     18        }
     19       
     20        return str;
     21}
     22*/
    923bool inifile_read(char* filename, inifile_callback callback)
    1024{
     
    4357                        if (inisection[0])
    4458                                free(inisection);
    45                         inisection = strdup(readptr + 1);
     59                        inisection = strdup(readptr + 1); // Skip the first [
    4660                        newsection = true;
    4761                }
     
    5771                                readptr[i - 1] = '\0'; // Remove the trailing newline.
    5872                       
    59                         if (equals) // If there's no equals, crash with error.
     73                        if (equals)
    6074                        {
    6175                                readptr[equals] = '\0';
     
    6478                                newsection = false;
    6579                        }
    66                         else
     80                        else // If there's no equals, crash with error.
    6781                        {
    6882                                success = false;
Note: See TracChangeset for help on using the changeset viewer.