25 lines
1.1 KiB
C
25 lines
1.1 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_bzero.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2023/11/07 16:43:13 by rparodi #+# #+# */
|
|
/* Updated: 2025/09/01 16:39:50 by rparodi ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "memory.h"
|
|
#include <unistd.h>
|
|
|
|
/**
|
|
* @brief Sets a block of memory to zero
|
|
*
|
|
* @param s Pointer to the memory area to be set at zero
|
|
* @param n Number of bytes to set to zero
|
|
*/
|
|
void ft_bzero(void *s, size_t n)
|
|
{
|
|
ft_memset(s, 0, n);
|
|
}
|