/******************************************************************************
Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, PHP, Ruby,
C#, VB, Perl, Swift, Prolog, Javascript, Pascal, HTML, CSS, JS
Code, Compile, Run and Debug online from anywhere in world.
*******************************************************************************/
#include <stdio.h>
void *ft_memset(void *buf, int ch, size_t count)
{
size_t temp;
temp = count;
while (count-- > 0)
*(char *)buf++ = ch;
return (buf-temp);
}
int main(void)
{
char dest[] = "1234567890";
//const char src[] = "0987654321";
//char *str - Π½Π΅ ΠΈΠ·ΠΌΠ΅Π½ΡΠ΅ΠΌΠ°Ρ ΡΡΡΠΎΠΊΠ°
//str[] - ΠΊΠ°ΠΊ ΠΈΠ·ΠΌΠ΅Π½ΡΠ΅ΠΌΡΠΉ ΠΌΠ°ΡΡΠΈΠ²
//printf("%s\n", dest);
printf("%s\n", (char *)ft_memset(dest, '!', 2));
return 0;
}