-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconvert_char.c
25 lines (22 loc) · 1.08 KB
/
convert_char.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
/* ************************************************************************** */
/* */
/* :::::::: */
/* convert_char.c :+: :+: */
/* +:+ */
/* By: jsaariko <[email protected]> +#+ */
/* +#+ */
/* Created: 2020/02/11 11:37:29 by jsaariko #+# #+# */
/* Updated: 2020/03/05 18:34:03 by jsaariko ######## odam.nl */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
char *convert_char(t_printf_arg **arg)
{
char *new;
new = (char *)ft_calloc(2, sizeof(char));
if (!new)
return (NULL);
new[0] = (*arg)->arg.c;
(*arg)->arg_width = 1;
return (new);
}