libft
Loading...
Searching...
No Matches
ft_bzero.c
Go to the documentation of this file.
1
/* ************************************************************************** */
2
/* */
3
/* ::: :::::::: */
4
/* ft_bzero.c :+: :+: :+: */
5
/* +:+ +:+ +:+ */
6
/* By: tspoof <tspoof@student.hive.fi> +#+ +:+ +#+ */
7
/* +#+#+#+#+#+ +#+ */
8
/* Created: 2022/10/26 12:17:37 by tspoof #+# #+# */
9
/* Updated: 2022/11/30 16:45:42 by tspoof ### ########.fr */
10
/* */
11
/* ************************************************************************** */
12
13
#include "
libft.h
"
14
15
void
ft_bzero
(
void
*s,
size_t
n)
16
{
17
if
(n != 0)
18
{
19
ft_memset
(s, 0, n);
20
}
21
}
ft_bzero
void ft_bzero(void *s, size_t n)
Zero a byte string.
Definition
ft_bzero.c:15
libft.h
ft_memset
void * ft_memset(void *b, int c, int len)
Fill memory area with a contant byte.
Definition
ft_memset.c:13
src
ft_bzero.c
Generated by
1.9.7