-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_bzero.c
26 lines (22 loc) · 1.06 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_bzero.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: bbosnak <bbosnak@student.42kocaeli.com.tr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/12/19 19:39:25 by bbosnak #+# #+# */
/* Updated: 2022/12/19 19:39:28 by bbosnak ### ########.tr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_bzero(void *str, size_t n)
{
ft_memset(str, '\0', n);
}
/* int main(void)
{
char str[] = "canodis";
ft_bzero(str, 4);
printf("%d | %d\n", str[3], str[4]);
} */