-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_print_str.c
23 lines (20 loc) · 1.03 KB
/
ft_print_str.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_print_str.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dshatilo <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/07 17:46:22 by dshatilo #+# #+# */
/* Updated: 2023/11/08 17:38:36 by dshatilo ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
int ft_print_str(va_list *args)
{
char *s;
s = va_arg(*args, char *);
if (!s)
return (ft_putstr("(null)"));
return (ft_putstr(s));
}