minishell/src/parser/matchers/operator_start.c

26 lines
1.1 KiB
C
Raw Normal View History

2025-02-17 16:14:14 +01:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* operator_start.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: kcolin <kcolin@42.fr> +#+ +:+ +#+ */
2025-02-17 16:14:14 +01:00
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/02/17 16:21:03 by kcolin #+# #+# */
/* Updated: 2025/02/18 17:53:13 by jguelen ### ########.fr */
2025-02-17 16:14:14 +01:00
/* */
/* ************************************************************************** */
#include "libft.h"
#include <stdbool.h>
/*
** Is the character the start of an operator?
*/
bool is_operator_start(char c)
{
if (ft_strchr("<>|&()", c) != NULL)
return (true);
else
return (false);
}