mirror of
https://github.com/guezoloic/libft.git
synced 2026-01-25 03:34:16 +00:00
feat: add ft_strlcpy function
This commit is contained in:
8
libft.h
8
libft.h
@@ -80,4 +80,12 @@ void *ft_memcpy(void *dst, const void *src, size_t n);
|
||||
*/
|
||||
void *ft_memmove(void *dst, const void *src, size_t n);
|
||||
|
||||
/*
|
||||
strlcpy() copies up to dstsize - 1
|
||||
characters from the string src to
|
||||
dst, NUL-terminating the result if
|
||||
dstsize is not 0.
|
||||
*/
|
||||
size_t ft_strlcpy(char *dst, const char *src, size_t dstsize);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user