tgrekov-ft_printf
HIVE printf Feb 2024
|
Definition in file ft_memchr.c.
#include "libft.h"
Go to the source code of this file.
Functions | |
void * | ft_memchr (const void *s, int c, size_t n) |
Finds first occurence of c in byte string at s within n bytes. | |
void * ft_memchr | ( | const void * | s, |
int | c, | ||
size_t | n | ||
) |
Finds first occurence of c
in byte string at s
within n
bytes.
Check is done as unsigned char
[in] | s | Byte string haystack to search |
[in] | c | int needle to find |
[in] | n | Number of bytes to check |
void* | Pointer to first occurence of needle c in haystack s . NULL if none is found within n bytes. |
Definition at line 33 of file ft_memchr.c.