ft_memccpy - kibotrel/42-Libft GitHub Wiki

void	*ft_memccpy(void *dst, const void *src, int c, size_t n)

Description :

Copies at most n bytes from memory area src to dst one. This process ends if n bytes are copied or whenever the byte c is found in dst area.

Return Value :

Returns a pointer on the first byte after c in dst if encountered else NULL is returned.

Source code