Go to the source code of this file.
|
size_t EXPRT | strlcpy (char *dst, const char *src, size_t size) |
|
size_t EXPRT | strlcat (char *dst, const char *src, size_t size) |
|
◆ EXPRT
◆ strlcpy()
size_t EXPRT strlcpy |
( |
char * |
dst, |
|
|
const char * |
src, |
|
|
size_t |
size |
|
) |
| |
Definition at line 39 of file strlcpy.cc.
46 if (
n != 0 && --
n != 0) {
48 if ((*d++ = *s++) == 0)
◆ strlcat()
size_t EXPRT strlcat |
( |
char * |
dst, |
|
|
const char * |
src, |
|
|
size_t |
size |
|
) |
| |
Definition at line 72 of file strlcpy.cc.
80 while (
n-- != 0 && *d !=
'\0')
86 return (dlen + strlen(s));
96 return (dlen + (s - src));