summaryrefslogtreecommitdiff
path: root/common/stringx.h
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2006-01-28 00:14:29 +0000
committerStef Walter <stef@memberwebs.com>2006-01-28 00:14:29 +0000
commitae2e52d578ca1dd78e31beed4c63a9b17ce3bb60 (patch)
tree44d35afcaf247ed6df2b1a7203aaf6bf9277261c /common/stringx.h
parent987a76bee76417887bd8d09f743691dbd3872f7d (diff)
First stage of standardizing string functions.
Diffstat (limited to 'common/stringx.h')
-rw-r--r--common/stringx.h33
1 files changed, 26 insertions, 7 deletions
diff --git a/common/stringx.h b/common/stringx.h
index 042cf2d..3949d70 100644
--- a/common/stringx.h
+++ b/common/stringx.h
@@ -36,18 +36,37 @@
*
*/
-#ifndef __STRINGX_H__
-#define __STRINGX_H__
+#ifndef __COMPAT_H__
+#define __COMPAT_H__
-void remove_cr(char* data);
+#include "config.h"
+#ifndef HAVE_STRLCPY
+size_t strlcpy(char *dst, const char *src, size_t len);
+#endif
+
+#ifndef HAVE_STRLCAT
+size_t strlcat(char* dst, const char* src, size_t siz);
+#endif
+
+#ifndef HAVE_STRCLN
+void strcln(char* data);
+#endif
+
+#ifndef HAVE_STRBTRIM
char* trim_start(const char* data);
+#endif
+
+#ifndef HAVE_STRETRIM
void trim_end(char* data);
+#endif
+
+#ifndef HAVE_STRTRIM
char* trim_space(char* data);
+#endif
+#ifndef HAVE_STRTOB
int strtob(const char* str);
+#endif
-size_t
-strlcpy(char *dst, const char *src, size_t len);
-
-#endif /* __STRINGX_H__ */
+#endif /* __COMPAT_H__ */