libft
Loading...
Searching...
No Matches
ft_memchr.c File Reference
#include "libft.h"

Go to the source code of this file.

Functions

void * ft_memchr (const void *s, int c, size_t n)
 Scan memory for a character.
 

Function Documentation

◆ ft_memchr()

void * ft_memchr ( const void *  s,
int  c,
size_t  n 
)

Scan memory for a character.

Scans n bytes of memory from address s for a character c.

Parameters
sStarting address
cCharacter to find
nTill how many bytes from the starting address s
Returns
void* Address of the found character or a NULL if character not found

Definition at line 15 of file ft_memchr.c.