-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_bzero.c
More file actions
22 lines (20 loc) · 1.07 KB
/
ft_bzero.c
File metadata and controls
22 lines (20 loc) · 1.07 KB
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: ommohame <ommohame@student.42abudhabi.a +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/12/21 22:02:51 by ommohame #+# #+# */
/* Updated: 2022/01/26 19:37:01 by ommohame ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/*
* does the same thing as memset but replace it with NULL
* you can use it as a safety option to hide sensitive data
*/
void ft_bzero(void *s, size_t n)
{
ft_memset(s, '\0', n);
}