diff options
| author | Stef Walter <stef@memberwebs.com> | 2006-01-28 00:17:38 +0000 | 
|---|---|---|
| committer | Stef Walter <stef@memberwebs.com> | 2006-01-28 00:17:38 +0000 | 
| commit | fbfb057e8bed90f73850d8e871e4d70e8fa705ce (patch) | |
| tree | 920c2a626ddd185176d1d8c14be7b1d7497451d1 /common | |
| parent | ae2e52d578ca1dd78e31beed4c63a9b17ce3bb60 (diff) | |
Standardize the string functions and search for them properly when configuring on different OSs.
Diffstat (limited to 'common')
| -rw-r--r-- | common/compat.c (renamed from common/stringx.c) | 4 | ||||
| -rw-r--r-- | common/compat.h (renamed from common/stringx.h) | 8 | 
2 files changed, 6 insertions, 6 deletions
| diff --git a/common/stringx.c b/common/compat.c index 3705cb9..9d2f53f 100644 --- a/common/stringx.c +++ b/common/compat.c @@ -98,8 +98,8 @@ stretrim(char* data)  char*  strtrim(char* data)  { -    data = (char*)trim_start(data); -    trim_end(data); +    data = (char*)strbtrim(data); +    stretrim(data);      return data;  } diff --git a/common/stringx.h b/common/compat.h index 3949d70..17967f4 100644 --- a/common/stringx.h +++ b/common/compat.h @@ -50,19 +50,19 @@ size_t strlcat(char* dst, const char* src, size_t siz);  #endif  #ifndef HAVE_STRCLN -void strcln(char* data); +void strcln(char* data, char ch);  #endif  #ifndef HAVE_STRBTRIM -char* trim_start(const char* data); +char* strbtrim(const char* data);  #endif  #ifndef HAVE_STRETRIM -void trim_end(char* data); +void stretrim(char* data);  #endif  #ifndef HAVE_STRTRIM -char* trim_space(char* data); +char* strtrim(char* data);  #endif  #ifndef HAVE_STRTOB | 
