diff options
author | Julien Cristau <jcristau@debian.org> | 2008-10-26 11:37:11 +0100 |
---|---|---|
committer | Julien Cristau <jcristau@debian.org> | 2008-10-26 11:44:57 +0100 |
commit | 5244690a5e0285b6243ee1f28ae6c8287a32b73d (patch) | |
tree | a2ddb8d10e233bacd93632142664523c93441ba8 /include/os.h | |
parent | eadf90aa65d1ea63ddcd74e60e66a79ad567c7e8 (diff) |
Add prototypes for strlcpy/strlcat
Diffstat (limited to 'include/os.h')
-rw-r--r-- | include/os.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/os.h b/include/os.h index 7acc591f0..77e94486a 100644 --- a/include/os.h +++ b/include/os.h @@ -456,6 +456,11 @@ extern int xstrncasecmp(const char *s1, const char *s2, size_t n); extern char *xstrcasestr(const char *s, const char *find); #endif +#ifndef HAS_STRLCPY +extern size_t strlcpy(char *dst, const char *src, size_t siz); +extern size_t strlcat(char *dst, const char *src, size_t siz); +#endif + /* Logging. */ typedef enum _LogParameter { XLOG_FLUSH, |