diff options
author | Kalle Wallin <kaw@linux.se> | 2004-06-05 11:21:43 +0000 |
---|---|---|
committer | Kalle Wallin <kaw@linux.se> | 2004-06-05 11:21:43 +0000 |
commit | f55a67b3f882641abe5a9b14b045d7ce71964af7 (patch) | |
tree | 181c15b1c59df30b2e28058f2648e5e701e57c4f /src/support.h | |
parent | 677eb1ad30321d83f6196672ea1798c0e1712870 (diff) | |
download | mpd-f55a67b3f882641abe5a9b14b045d7ce71964af7.tar.gz mpd-f55a67b3f882641abe5a9b14b045d7ce71964af7.tar.xz mpd-f55a67b3f882641abe5a9b14b045d7ce71964af7.zip |
Changed directory layout (for future use of gettext)
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1342 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/support.h')
-rw-r--r-- | src/support.h | 24 |
1 files changed, 24 insertions, 0 deletions
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 <libgen.h> +#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 |