-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_putcstr.c
20 lines (18 loc) · 1020 Bytes
/
ft_putcstr.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putcstr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lenzo-pe <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/03/12 17:59:19 by lenzo-pe #+# #+# */
/* Updated: 2021/04/07 11:13:59 by lenzo-pe ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_put.h"
void ft_putcstr(char *str, int c)
{
if (str)
while (*str != '\0' && *str != c)
ft_putchar(*str++);
}