aboutsummaryrefslogtreecommitdiff
path: root/src/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/src/utils.h b/src/utils.h
new file mode 100644
index 00000000..7f8a8348
--- /dev/null
+++ b/src/utils.h
@@ -0,0 +1,59 @@
1/* Copyrights 2002 Luis Figueiredo (stdio@netc.pt) All rights reserved.
2 *
3 * See the LICENSE file
4 *
5 * The origin of this software must not be misrepresented, either by
6 * explicit claim or by omission. Since few users ever read sources,
7 * credits must appear in the documentation.
8 *
9 * file: utils.h
10 *
11 * description: Header
12 *
13 * date: 19:50,07-50-2002
14 */
15
16#ifndef _UTILS_H_
17#define _UTILS_H_
18
19#ifdef HAVE_CONFIG_H
20#include "config.h"
21#endif
22
23#include <stdio.h>
24#include <stdlib.h>
25#include <string.h>
26#include <sys/stat.h>
27#include <ctype.h>
28
29#ifdef TM_IN_SYS_TIME
30#include <sys/time.h>
31#else
32#include <time.h>
33#endif
34
35#include "debug.h"
36#include "error.h"
37#include "memory.h"
38
39#ifdef WIN32
40
41#define strncasecmp strnicmp
42#define snprintf _snprintf
43#define lstat stat
44#define vsnprintf _vsnprintf
45
46#endif
47
48
49#define TMPNAMESIZE 8
50extern char *_tmpnameprefix;
51
52
53char *__ILWS_stristr(char *, const char *);
54char *__ILWS_tmpfname();
55int __ILWS_base64decode(char *, const char *);
56char *__ILWS_date(time_t,const char *);
57
58
59#endif