From f55a67b3f882641abe5a9b14b045d7ce71964af7 Mon Sep 17 00:00:00 2001 From: Kalle Wallin Date: Sat, 5 Jun 2004 11:21:43 +0000 Subject: Changed directory layout (for future use of gettext) git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1342 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/support.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/support.h (limited to 'src/support.h') diff --git a/src/support.h b/src/support.h new file mode 100644 index 000000000..1f3aca160 --- /dev/null +++ b/src/support.h @@ -0,0 +1,24 @@ +#ifndef SUPPORT_H +#define SUPPORT_H + +#ifdef HAVE_LIBGEN_H +#include +#endif + +#ifndef HAVE_BASENAME +char *basename(char *path); +#endif + +#define IS_WHITESPACE(c) (c==' ' || c=='\t' || c=='\r' || c=='\n') + +char *trim(char *str); +char *remove_trailing_slash(char *path); +char *lowerstr(char *str); +char *strcasestr(const char *haystack, const char *needle); + +int charset_init(void); +int charset_close(void); +char *utf8_to_locale(char *str); +char *locale_to_utf8(char *str); + +#endif -- cgit v1.2.3