-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtype_f.c
More file actions
22 lines (19 loc) · 1.02 KB
/
type_f.c
File metadata and controls
22 lines (19 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* type_f.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: qdegraev <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/02/12 20:27:45 by qdegraev #+# #+# */
/* Updated: 2016/02/22 10:46:32 by qdegraev ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
void type_f(t_arg *a)
{
char *f;
f = ft_dtoa_base(va_arg(a->ap, double), 10, a->p, a);
a->ret = ft_strlen(f);
ft_putstr(f);
}