-
Notifications
You must be signed in to change notification settings - Fork 0
/
prf_parse_spec.c
26 lines (23 loc) · 1.08 KB
/
prf_parse_spec.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
26
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* prf_parse_spec.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: aklein <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/29 19:53:12 by aklein #+# #+# */
/* Updated: 2023/11/07 02:13:39 by aklein ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
int parse_spec(t_print *print)
{
size_t i;
i = 0;
print->frm++;
if (ft_strchr(SPECS, print->frm[i]) == 0)
return (0);
print->spec_i = i;
print->spec = print->frm[i];
return (1);
}