diff options
author | Alan Brault <alan.brault@incruentatus.net> | 2011-05-03 09:28:09 -0400 |
---|---|---|
committer | Alan Brault <alan.brault@incruentatus.net> | 2011-05-03 09:28:09 -0400 |
commit | b608b55786a8cecf626d7c489496ac402098b198 (patch) | |
tree | c72a75af776d41cb21ce64de6b843bae4020eab1 /include | |
parent | 647e4ca02ad06939dea2e6b1dcf71ee510867cd4 (diff) | |
download | duser-b608b55786a8cecf626d7c489496ac402098b198.tar.gz |
Clean up compat, bring in strcasestr from OpenBSD and strchrnul from uclibc
and separate the headers.
Diffstat (limited to 'include')
-rw-r--r-- | include/compat/strcasestr.h | 4 | ||||
-rw-r--r-- | include/compat/strchrnul.h | 4 | ||||
-rw-r--r-- | include/duser.h | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/include/compat/strcasestr.h b/include/compat/strcasestr.h new file mode 100644 index 0000000..67917d0 --- /dev/null +++ b/include/compat/strcasestr.h @@ -0,0 +1,4 @@ +#ifndef STRCASESTR_H +#define STRCASESTR_H +char *strcasestr(const char *s, const char *find); +#endif diff --git a/include/compat/strchrnul.h b/include/compat/strchrnul.h new file mode 100644 index 0000000..ca12806 --- /dev/null +++ b/include/compat/strchrnul.h @@ -0,0 +1,4 @@ +#ifndef STRCHRNUL_H +#define STRCHRNUL_H +char *strchrnul(const char* s, int c); +#endif diff --git a/include/duser.h b/include/duser.h index d562b33..e955252 100644 --- a/include/duser.h +++ b/include/duser.h @@ -77,6 +77,4 @@ int user_cmd(const int argc, char* argv[]); int user_choice(char c); int user_add(const char* filename, const char* needle); int user_new_list(const char* fname); -char *strcasestr(const char *s, const char *find); -char *strchrnul(const char* s, int c); #endif |