maxishell
Implementation of a shell for Linux-like systems
Loading...
Searching...
No Matches
ft_memset.c File Reference
#include "libft.h"
Include dependency graph for ft_memset.c:

Go to the source code of this file.

Functions

void * ft_memset (void *s, int c, size_t n)
 

Function Documentation

◆ ft_memset()

void * ft_memset ( void *  s,
int  c,
size_t  n 
)

Definition at line 28 of file ft_memset.c.

29{
30 unsigned char *ptr;
31
32 ptr = s;
33 while (n-- > 0)
34 *ptr++ = (unsigned char)c;
35 return (s);
36}

Referenced by ft_calloc(), and signal_handler().

Here is the caller graph for this function: