-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlib.h
26 lines (20 loc) · 766 Bytes
/
lib.h
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
/******************************************************************************
* @file lib.h
*****************************************************************************/
#ifndef _LIB_H
#define _LIB_H
#if defined (_WIN32)
# define PATHSEP ";"
#else
# define PATHSEP ":"
#endif
enum { CC_COMPILE = 0, CC_PREPROCESS };
char *skip_whitespace (char *p);
char *trim (char *p);
char *xstrdup (const char *p);
char *xstrndup (const char *p, unsigned long len);
void dynarray_add (void *ptab, unsigned long *nb_ptr, void *data);
void parse_args (int *pargc, char ***pargv, int optind);
void *xmalloc (unsigned long size);
void *xrealloc (void *ptr, unsigned long size);
#endif /* _LIB_H */