0
|
1 #ifndef __UTILS
|
|
2 #define __UTILS
|
|
3
|
|
4
|
|
5 #include <stdio.h>
|
|
6 #include <stdlib.h>
|
|
7 #include <string.h>
|
|
8 #include <zlib.h>
|
|
9
|
|
10 #include "globals.h"
|
|
11
|
|
12
|
|
13
|
|
14 void print_error(char *);
|
|
15
|
|
16 void set_runmode(enum MODETYPE);
|
|
17 void set_gender(enum GENDERTYPE SET);
|
|
18
|
|
19 void set_str(char **, char *);
|
|
20
|
|
21 void init_globals(void);
|
|
22
|
|
23 FILE *my_fopen(char *, char *, char);
|
|
24
|
|
25 void saveRefConfig(char *);
|
|
26 void loadRefConfig(char *);
|
|
27
|
|
28 int endswith(char *, char *);
|
|
29 void trimspace(char *);
|
|
30
|
|
31 static int compChr(const void *, const void *);
|
|
32
|
|
33 #endif
|