-
Notifications
You must be signed in to change notification settings - Fork 0
/
is_comment.c
executable file
·18 lines (16 loc) · 1017 Bytes
/
is_comment.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* is_comment.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ioleksiu <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/08/15 20:45:47 by ioleksiu #+# #+# */
/* Updated: 2017/08/15 20:45:49 by ioleksiu ### ########.fr */
/* */
/* ************************************************************************** */
#include "lem_in.h"
int is_comment(char *str)
{
return ((str[0] == '#' && str[1] != '#') || ft_strnequ(str, "###", 3));
}