]> git.deb.at Git - pkg/abook.git/blob - misc.h
Imported Upstream version 0.4.16
[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 int             safe_strcoll(const char *s1, const char *s2);
14
15 char            *my_getcwd();
16
17 char            *getaline(FILE *f);
18
19 #ifdef HAVE_CONFIG_H
20 #       include "config.h"
21 #endif
22
23 #include <stdarg.h>
24
25 #ifndef HAVE_SNPRINTF
26 int snprintf (char *str, size_t count, const char *fmt, ...);
27 #endif
28 #ifndef HAVE_VSNPRINTF
29 int vsnprintf (char *str, size_t count, const char *fmt, va_list arg);
30 #endif
31
32 #endif