-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_bzero.c
28 lines (26 loc) · 1.28 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
26
27
28
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_bzero.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: imunaev- <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/11/07 08:37:46 by imunaev- #+# #+# */
/* Updated: 2025/01/18 11:54:51 by imunaev- ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/**
* @brief Erases data in a block of memory by setting it to zero.
*
* This function sets the first `n` bytes of the memory area
* pointed to by `s` to zero bytes ('\0').
*
* @param s Pointer to the memory area to be zeroed.
* @param n Number of bytes to set to zero.
* @return void This function does not return a value.
*/
void ft_bzero(void *s, size_t n)
{
ft_memset(s, 0, n);
}