src/temp_in.c
/*
**	This function will identify if the line passed to it is either a name or
**	comment command. If it is, then the appropriate function will be called to
**	set the variables. It returns 1 if it is a name or comment, otherwise 0.
*/
This function will identify if the line passed to it is either a name or
comment command. If it is, then the appropriate function will be called to
set the variables. It returns 1 if it is a name or comment, otherwise 0.
This function will identify if the line passed to it is either a name or comment command . If it is then the appropriate function will be called to set the variables . It returns 1 if it is a name or comment otherwise 0 .
static _Bool	name_comment(char *line)
{
	_Bool	result;
	char	*temp;
	result = 0;
	temp = ft_strdup(line);
	temp = format_line(temp);
	if (identify_line(temp) == 2)
	{
		read_name(line);
		result = 1;
	}
	else if (identify_line(temp) == 3)
	{
		read_comment(line);
		result = 1;
	}
	ft_strdel(&temp);
	return (result);
}
static _Bool name_comment ( char * line ) { _Bool result ; char * temp ; result = 0 ; temp = ft_strdup ( line ) ; temp = format_line ( temp ) ; if ( identify_line ( temp ) == 2 ) { read_name ( line ) ; result = 1 ; } else if ( identify_line ( temp ) == 3 ) { read_comment ( line ) ; result = 1 ; } ft_strdel ( & temp ) ; return ( result ) ; }
This function will identify if the line passed to it is either a name or
comment command.
This function will identify if the line passed to it is either a name or comment command .