[C] memset / memset.c / memset in c

2022. 7. 25. 17:37🧑🏻‍💻/C & C++

man memset

void	*memset(void *b, int c, size_t len)
{
	unsigned char	*temp_b;

	temp_b = (unsigned char *)b;
	while (len--)
		*temp_b++ = (unsigned char)c;
	return (b);
}