]> git.deb.at Git - pkg/abook.git/blob - misc.h
Initial revision
[pkg/abook.git] / misc.h
1 #ifndef _MISC_H
2 #define _MISC_H
3
4 char            *revstr(char *str);
5 char            *strupper(char *str);
6 char            *strlower(char *str);
7 char            *strtrim(char *);
8
9 char            *mkstr (const char *format, ... );
10 char            *strconcat (const char *str, ...);
11
12 int             safe_strcmp(const char *s1, const char * s2);
13
14 char            *my_getcwd();
15
16 char            *getaline(FILE *f);
17
18 #ifdef HAVE_CONFIG_H
19 #       include "config.h"
20 #endif
21
22 #include <stdarg.h>
23
24 #ifndef HAVE_SNPRINTF
25 int snprintf (char *str, size_t count, const char *fmt, ...);
26 #endif
27 #ifndef HAVE_VSNPRINTF
28 int vsnprintf (char *str, size_t count, const char *fmt, va_list arg);
29 #endif
30
31 #endif