-
Notifications
You must be signed in to change notification settings - Fork 0
/
my_ft_setyourchar.c
17 lines (16 loc) · 974 Bytes
/
my_ft_setyourchar.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* my_ft_setyourchar.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: nmizin <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/11/24 13:15:45 by nmizin #+# #+# */
/* Updated: 2017/11/24 13:24:13 by nmizin ### ########.fr */
/* */
/* ************************************************************************** */
void my_ft_setyourchar(char *s, int c)
{
while (*s)
*s++ = (unsigned char)c;
}