-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_printstr.c
27 lines (25 loc) · 1.07 KB
/
ft_printstr.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_printstr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mmita <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/12/25 11:34:09 by mmita #+# #+# */
/* Updated: 2023/01/28 16:45:53 by mmita ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
void ft_printstr(char *print, int *i)
{
if (print == NULL)
ft_printstr("(null)", i);
else
{
while (*print != '\0')
{
ft_printchar(*print, i);
print++;
}
}
}