-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_bzero.c
22 lines (19 loc) · 1010 Bytes
/
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_bzero.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gantonio <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/05/17 01:00:33 by gantonio #+# #+# */
/* Updated: 2021/05/17 01:23:24 by gantonio ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_bzero(void *str, size_t len)
{
char *ptr;
ptr = str;
while (len--)
*ptr++ = '\0';
}