minishell
ft_bzero.c File Reference
#include "ft_mem.h"
Include dependency graph for ft_bzero.c:

Go to the source code of this file.

Functions

void ft_bzero (void *s, size_t n)
 

Function Documentation

◆ ft_bzero()

void ft_bzero ( void *  s,
size_t  n 
)

Definition at line 15 of file ft_bzero.c.

16 {
17  char *ptr;
18 
19  ptr = s;
20  while (n-- > 0)
21  {
22  *ptr = 0;
23  ptr++;
24  }
25 }
Here is the caller graph for this function: