]> git.deb.at Git - pkg/abook.git/blob - misc.h
Imported Upstream version 0.5.3
[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 int             strwidth(const char *s);
20 int             bytes2width(const char *s, int width);
21
22
23 #ifdef HAVE_CONFIG_H
24 #       include "config.h"
25 #endif
26
27 #include <stdarg.h>
28
29 #ifndef HAVE_SNPRINTF
30 int snprintf (char *str, size_t count, const char *fmt, ...);
31 #endif
32 #ifndef HAVE_VSNPRINTF
33 int vsnprintf (char *str, size_t count, const char *fmt, va_list arg);
34 #endif
35
36 #endif