forked from abaiao-r/minishell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_is_quote.c
31 lines (27 loc) · 1.17 KB
/
ft_is_quote.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
27
28
29
30
31
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* .c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: abaiao-r <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/05/02 21:56:44 by abaiao-r #+# #+# */
/* Updated: 2023/05/02 22:00:33 by abaiao-r ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isquote(char c)
{
return (c == '\'' || c == '\"');
}
/* main to test */
/* int main(void)
{
char c = '"';
int result = ft_isquote(c);
if (result)
printf("%c is a quote character\n", c);
else
printf("%c is not a quote character\n", c);
return (0);
} */