-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_bzero.c
33 lines (28 loc) · 1.13 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
32
33
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_bzero.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ykondo <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/31 20:24:07 by ykondo #+# #+# */
/* Updated: 2021/10/31 20:24:07 by ykondo ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_bzero(void *s, size_t n)
{
ft_memset(s, '\0', n);
}
/*
#include <stdio.h>
int main(void)
{
char str[] = "3456780129";
char a[] = "3456780129";
ft_bzero(str, 3);
printf("%c\n", str[5]);
bzero(a, 3);
printf("%c\n", a[5]);
}
*/