-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathformat_unknown.c
More file actions
22 lines (20 loc) · 1.12 KB
/
Copy pathformat_unknown.c
File metadata and controls
22 lines (20 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* format_unknown.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: alischyn <alischyn@student.unit.ua> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/03/22 18:30:35 by alischyn #+# #+# */
/* Updated: 2017/03/22 19:01:24 by alischyn ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
void format_unknown(t_fmt *fmt)
{
if (fmt->has_width && !fmt->f_minus)
APPEND_CHAR_N(fmt->f_zero ? '0' : ' ', fmt->width - 1);
APPEND_CHAR(fmt->type);
if (fmt->has_width && fmt->f_minus)
APPEND_CHAR_N(' ', fmt->width - 1);
}