Code

Added file langinfo.c, used on systems without nl_langinfo() support.
[ncmpc.git] / support.h
2 #ifdef HAVE_LIBGEN_H
3 #include <libgen.h>
4 #endif
6 #ifndef HAVE_LANGINFO_CODESET
7 #define CODESET ((nl_item) 1)
8 typedef int nl_item;
9 char *nl_langinfo(nl_item);
10 #endif
12 char *concat_path(char *p1, char *p2);
14 #ifndef HAVE_BASENAME
15 char *basename(char *path);
16 #endif
18 #ifndef HAVE_STRCASESTR
19 char *strcasestr(const char *haystack, const char *needle);
20 #endif
22 char *remove_trailing_slash(char *path);
23 char *lowerstr(char *str);
26 int charset_init(void);
27 int charset_close(void);
28 char *utf8_to_locale(char *str);