-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_bzero.c
More file actions
22 lines (19 loc) · 998 Bytes
/
ft_bzero.c
File metadata and controls
22 lines (19 loc) · 998 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_bzero.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: kbenjell <kbenjell@student.1337.ma> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/12 00:39:53 by kbenjell #+# #+# */
/* Updated: 2022/11/17 22:42:52 by kbenjell ### ########.fr */
/* */
/* ************************************************************************** */
#include <stdlib.h>
void ft_bzero(void *s, size_t n)
{
char *p;
p = s;
while (n--)
*(p + n) = 0;
}