Moved files a bit to reflect their use
This commit is contained in:
parent
7ac90bac55
commit
72b90debcc
18 changed files with 149 additions and 124 deletions
31
stdme/src/os/process_iterator_function.c
Normal file
31
stdme/src/os/process_iterator_function.c
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* process_inner.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/01/04 22:25:44 by maiboyer #+# #+# */
|
||||
/* Updated: 2024/08/01 06:37:51 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "me/types.h"
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
|
||||
bool find_null(const t_str *s)
|
||||
{
|
||||
return (s == NULL);
|
||||
}
|
||||
|
||||
bool find_path(const t_str *s)
|
||||
{
|
||||
t_str ss;
|
||||
|
||||
if (*s == NULL)
|
||||
return (false);
|
||||
ss = *s;
|
||||
return (ss[0] == 'P' && ss[1] == 'A' && ss[2] == 'T' && ss[3] == 'H' && \
|
||||
ss[4] == '=');
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue