-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconvert_tostr.c
More file actions
25 lines (22 loc) · 1.05 KB
/
convert_tostr.c
File metadata and controls
25 lines (22 loc) · 1.05 KB
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* convert_tostr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: agras <agras@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/12/10 08:14:21 by agras #+# #+# */
/* Updated: 2022/01/17 16:12:22 by agras ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
int convert_tostr(va_list *args)
{
char *str;
str = va_arg(*args, char *);
if (!str)
{
return (ft_putstr("(null)"));
}
return (ft_putstr(str));
}