-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathincr.c
26 lines (24 loc) · 1.11 KB
/
incr.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* incr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: anel-bou <anel-bou@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/06/29 05:52:02 by anel-bou #+# #+# */
/* Updated: 2019/10/22 18:54:51 by anel-bou ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
void incr(char **str)
{
if (**str == '{')
while (**str != '}')
(*str)++;
else if (**str == '}')
while (**str != '{')
(*str)++;
else
while (**str && !ft_strchr("cspfdiouxXegbrk", **str))
(*str)++;
}