-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_printf_dmaj.c
25 lines (22 loc) · 1.09 KB
/
ft_printf_dmaj.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_printf_dmaj.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mfrisby <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/07/11 13:11:47 by mfrisby #+# #+# */
/* Updated: 2017/07/11 13:12:06 by mfrisby ### ########.fr */
/* */
/* ************************************************************************** */
#include "libftprintf.h"
void ft_printf_dmaj(t_env *e)
{
char *tmp;
signed long int deci;
tmp = NULL;
deci = va_arg(e->pa, signed long int);
tmp = ft_stoa_base(deci, 10);
e->type = 'D';
ft_printf_putflags(e, tmp);
}