-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_bzero.c
25 lines (23 loc) · 1.07 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_bzero.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gudaniel <gudaniel@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/09 13:54:57 by gudaniel #+# #+# */
/* Updated: 2024/04/09 13:55:02 by gudaniel ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_bzero(void *ptr, size_t x)
{
ft_memset(ptr, 0, x);
}
/* int main() {
char str[50] = "Gustavo This is memset";
puts(str);
ft_bzero(str, 7);
puts(str);
return(0);
} */