bebou t tro for
This commit is contained in:
parent
b5c7344851
commit
1252ac48a8
15 changed files with 214 additions and 25 deletions
|
|
@ -6,11 +6,12 @@
|
|||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/01/04 22:25:44 by maiboyer #+# #+# */
|
||||
/* Updated: 2024/01/04 22:26:10 by maiboyer ### ########.fr */
|
||||
/* Updated: 2024/05/09 16:57:24 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "me/types.h"
|
||||
#include <stdbool.h>
|
||||
|
||||
bool find_null(const t_str *s)
|
||||
{
|
||||
|
|
@ -29,5 +30,7 @@ bool str_start_with(t_const_str s, t_const_str prefix)
|
|||
|
||||
bool find_path(const t_str *s)
|
||||
{
|
||||
if (*s == NULL)
|
||||
return (false);
|
||||
return (str_start_with(*s, "PATH="));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue