mirror of
https://github.com/guezoloic/libft.git
synced 2026-01-25 03:34:16 +00:00
17 lines
181 B
C
17 lines
181 B
C
#include "libft.h"
|
|
|
|
void *ft_memset(void *b, int c, size_t len)
|
|
{
|
|
char *tmp;
|
|
size_t i;
|
|
|
|
tmp = (char *)b;
|
|
i = 0;
|
|
while (i < len)
|
|
{
|
|
tmp[i] = (char)c;
|
|
i++;
|
|
}
|
|
return (b);
|
|
}
|