-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_bzero.c
31 lines (27 loc) · 1.15 KB
/
ft_bzero.c
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_bzero.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: yuske <yuske@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/12 03:15:22 by yfurutat #+# #+# */
/* Updated: 2022/12/02 08:02:11 by yuske ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
//1.
void ft_bzero(void *array, size_t n)
{
ft_memset(array, '\0', n);
}
//3. 7L
// void ft_bzero(void *array, size_t n)
// {
// size_t i;
// char *mem_caster;
// i = 0;
// mem_caster = (char *)array;
// while (i < n)
// mem_caster[i++] = 0;
// }