tgrekov-libft
HIVE libft Oct 2023
Loading...
Searching...
No Matches
ft_bzero.c
Go to the documentation of this file.
1
/* ************************************************************************** */
2
/* */
3
/* ::: :::::::: */
4
/* ft_bzero.c :+: :+: :+: */
5
/* +:+ +:+ +:+ */
6
/* By: tgrekov <tgrekov@student.hive.fi> +#+ +:+ +#+ */
7
/* +#+#+#+#+#+ +#+ */
8
/* Created: 2023/10/23 15:09:47 by tgrekov #+# #+# */
9
/* Updated: 2023/11/04 22:24:47 by tgrekov ### ########.fr */
10
/* */
11
/* ************************************************************************** */
12
20
#include "
libft.h
"
21
28
void
ft_bzero
(
void
*s,
size_t
n)
29
{
30
while
(n--)
31
((
unsigned
char
*) s)[n] = 0;
32
}
ft_bzero
void ft_bzero(void *s, size_t n)
Write n zeroes to byte string at pointer s.
Definition
ft_bzero.c:28
libft.h
ft_bzero.c