version 1.3, 2008/12/15 02:29:44 |
version 1.4, 2009/03/19 16:40:49 |
|
|
#include <sys/types.h> |
#include <sys/types.h> |
#include <string.h> |
#include <string.h> |
|
|
#ifdef __linux__ |
#ifdef __linux__ |
|
|
/* |
/* |
* Appends src to string dst of size siz (unlike strncat, siz is the |
* Appends src to string dst of size siz (unlike strncat, siz is the |
Line 56 strlcat(char *dst, const char *src, size_t siz) |
|
Line 56 strlcat(char *dst, const char *src, size_t siz) |
|
return(dlen + (s - src)); /* count does not include NUL */ |
return(dlen + (s - src)); /* count does not include NUL */ |
} |
} |
|
|
|
|
/* |
/* |
* Copy src to string dst of size siz. At most siz-1 characters |
* Copy src to string dst of size siz. At most siz-1 characters |
* will be copied. Always NUL terminates (unless siz == 0). |
* will be copied. Always NUL terminates (unless siz == 0). |
Line 88 strlcpy(char *dst, const char *src, size_t siz) |
|
Line 87 strlcpy(char *dst, const char *src, size_t siz) |
|
return(s - src - 1); /* count does not include NUL */ |
return(s - src - 1); /* count does not include NUL */ |
} |
} |
|
|
#endif /*__linux__*/ |
#endif |