#include <string.h>
#include <assert.h>
#include "read_xml_util.h"
#include "read_settings.h"
Go to the source code of this file.
static int process_settings |
( |
ezxml_t |
Cur, |
|
|
char ** |
outv |
|
) |
| |
|
static |
Definition at line 6 of file read_settings.c.
13 while (Cur->
attr[count])
19 outv[count] = (
char *)
my_malloc(strlen(Cur->
attr[count]) + 3);
20 strcpy(&outv[count][2], Cur->
attr[count]);
21 outv[count][0] = outv[count][1] =
'-';
24 outv[count] = Cur->
attr[count];
36 strcpy(&outv[count][2], Cur->
name);
37 outv[count][0] = outv[count][1] =
'-';
43 if (outv) outv[count] = Cur->
txt;
static void * my_malloc(int ibytes)
int read_settings_file |
( |
char * |
file_name, |
|
|
char *** |
outv |
|
) |
| |
Definition at line 53 of file read_settings.c.
59 assert(*outv == NULL);
60 assert(! strcmp(
"settings",Cur->
name));
68 *outv = (
char **)
my_malloc(count *
sizeof(
char *));
static void * my_malloc(int ibytes)
ezxml_t FindElement(INP ezxml_t Parent, INP const char *Name, INP boolean Required)
static int process_settings(ezxml_t Cur, char **outv)
ezxml_t ezxml_parse_file(const char *file)
char * my_strdup(const char *str)