annotate mrcanavar-0.34/utils.h @ 0:86522a0b5f59 default tip

Uploaded source code for mrCaNaVaR
author calkan
date Tue, 21 Feb 2012 10:44:13 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
1 #ifndef __UTILS
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
2 #define __UTILS
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
3
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
4
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
5 #include <stdio.h>
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
6 #include <stdlib.h>
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
7 #include <string.h>
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
8 #include <zlib.h>
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
9
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
10 #include "globals.h"
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
11
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
12
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
13
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
14 void print_error(char *);
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
15
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
16 void set_runmode(enum MODETYPE);
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
17 void set_gender(enum GENDERTYPE SET);
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
18
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
19 void set_str(char **, char *);
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
20
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
21 void init_globals(void);
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
22
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
23 FILE *my_fopen(char *, char *, char);
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
24
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
25 void saveRefConfig(char *);
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
26 void loadRefConfig(char *);
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
27
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
28 int endswith(char *, char *);
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
29 void trimspace(char *);
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
30
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
31 static int compChr(const void *, const void *);
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
32
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
33 #endif