-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_bzero.c
More file actions
22 lines (19 loc) · 1008 Bytes
/
ft_bzero.c
File metadata and controls
22 lines (19 loc) · 1008 Bytes
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: ewilliam <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/11/28 19:54:51 by ewilliam #+# #+# */
/* Updated: 2016/11/29 18:10:39 by ewilliam ### ########.fr */
/* */
/* ************************************************************************** */
#include <string.h>
void ft_bzero(void *s, size_t n)
{
int len;
len = n;
while (len--)
*(char*)s++ = '\0';
}