-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_printf_umaj.c
More file actions
24 lines (21 loc) · 1.1 KB
/
ft_printf_umaj.c
File metadata and controls
24 lines (21 loc) · 1.1 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_printf_umaj.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mfrisby <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/07/11 13:15:15 by mfrisby #+# #+# */
/* Updated: 2017/07/11 13:15:16 by mfrisby ### ########.fr */
/* */
/* ************************************************************************** */
#include "libftprintf.h"
void ft_printf_umaj(t_env *e)
{
char *tmp;
unsigned long int deci;
deci = va_arg(e->pa, unsigned long int);
tmp = ft_utoa_base(deci, 10);
ft_printf_add_to_buffer(e, tmp, 0);
ft_strdel(&tmp);
}