aboutsummaryrefslogtreecommitdiff
path: root/src/utils.h
blob: 7f8a8348afa12b5f746d16d144d7970df65a4d78 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/* Copyrights 2002 Luis Figueiredo (stdio@netc.pt) All rights reserved. 
 *
 * See the LICENSE file
 *
 * The origin of this software must not be misrepresented, either by
 * explicit claim or by omission.  Since few users ever read sources,
 * credits must appear in the documentation.
 *
 * file: utils.h
 *
 * description: Header
 *
 * date: 19:50,07-50-2002
 */

#ifndef _UTILS_H_ 
#define _UTILS_H_

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif         

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <ctype.h>

#ifdef TM_IN_SYS_TIME
#include <sys/time.h>
#else
#include <time.h>
#endif

#include "debug.h"
#include "error.h"
#include "memory.h"

#ifdef WIN32

#define strncasecmp strnicmp
#define snprintf _snprintf
#define lstat stat
#define vsnprintf _vsnprintf

#endif


#define TMPNAMESIZE 8
extern char *_tmpnameprefix;


char *__ILWS_stristr(char *, const char *);
char *__ILWS_tmpfname();
int __ILWS_base64decode(char *, const char *);
char *__ILWS_date(time_t,const char *);


#endif