tgrekov-libft
HIVE libft Oct 2023
Loading...
Searching...
No Matches
ft_memset.c
Go to the documentation of this file.
1
/* ************************************************************************** */
2
/* */
3
/* ::: :::::::: */
4
/* ft_memset.c :+: :+: :+: */
5
/* +:+ +:+ +:+ */
6
/* By: tgrekov <tgrekov@student.hive.fi> +#+ +:+ +#+ */
7
/* +#+#+#+#+#+ +#+ */
8
/* Created: 2023/10/23 13:43:01 by tgrekov #+# #+# */
9
/* Updated: 2023/11/06 15:37:00 by tgrekov ### ########.fr */
10
/* */
11
/* ************************************************************************** */
12
20
#include "
libft.h
"
21
31
void
*
ft_memset
(
void
*b,
int
c,
size_t
len)
32
{
33
while
(len--)
34
((
unsigned
char
*) b)[len] = c;
35
return
(b);
36
}
ft_memset
void * ft_memset(void *b, int c, size_t len)
Fills len bytes of byte string b with value c.
Definition
ft_memset.c:31
libft.h
ft_memset.c