Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unsigned int ft_strlcpy(char *dest, char *src, unsigned int size)
- {
- unsigned int count;
- unsigned int i;
- count = 0;
- while (src[count] != '\0')
- ++count;
- i = 0;
- while (src[i] != '\0' && i < (size - 1))
- {
- dest[i] = src[i];
- ++i;
- }
- dest[i] = '\0';
- return (count);
- }
Add Comment
Please, Sign In to add comment