Updated Filelist
This commit is contained in:
parent
ed4015a8fe
commit
f05826942a
15 changed files with 182 additions and 163 deletions
30
exec/src/spawn_cmd/iter_funcs.c
Normal file
30
exec/src/spawn_cmd/iter_funcs.c
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* iter_funcs.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/01/04 22:25:44 by maiboyer #+# #+# */
|
||||
/* Updated: 2024/07/30 13:22:34 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "me/types.h"
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
|
||||
bool exec_find_null(const t_str *s)
|
||||
{
|
||||
return (s == NULL);
|
||||
}
|
||||
|
||||
bool exec_find_path(const t_str *s)
|
||||
{
|
||||
t_str str;
|
||||
|
||||
if (*s == NULL)
|
||||
return (false);
|
||||
str = *s;
|
||||
return (str[0] == 'P' && str[1] == 'A' && str[2] == 'T' && str[3] == 'H' && str[4] == '=');
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue