mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-05 23:18:08 +01:00
25 lines
1.1 KiB
C
25 lines
1.1 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* operator_start.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: kcolin <kcolin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2025/02/17 16:21:03 by kcolin #+# #+# */
|
|
/* Updated: 2025/02/18 17:53:13 by jguelen ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#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);
|
|
}
|