-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_checkformat.c
More file actions
23 lines (21 loc) · 1.06 KB
/
Copy pathft_checkformat.c
File metadata and controls
23 lines (21 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_checkformat.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rahidalg <rahidalg@student.42madrid.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/05/07 13:09:04 by rahidalg #+# #+# */
/* Updated: 2024/05/07 13:09:10 by rahidalg ### ########.fr */
/* */
/* ************************************************************************** */
#include "libftprintf.h"
int ft_checkformat(char c)
{
if (c != 'c' && c != 's' && c != 'i'
&& c != 'd' && c != 'u' && c != 'x'
&& c != 'X' && c != 'p')
return (0);
else
return (1);
}