-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_bzero.c
More file actions
33 lines (29 loc) · 1.11 KB
/
ft_bzero.c
File metadata and controls
33 lines (29 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_bzero.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lcosta-g <lcosta-g@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/09 13:15:22 by lcosta-g #+# #+# */
/* Updated: 2024/10/15 17:41:51 by lcosta-g ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_bzero(void *s, size_t n)
{
ft_memset(s, 0, n);
}
/*
#include <stdio.h>
int main(void)
{
int mem[12];
int i;
ft_bzero(mem, 3 * sizeof(int));
i = 0;
while (i < 3)
printf("%i\n", mem[i++]);
return (0);
}
*/