bebou t tro for

This commit is contained in:
Raphaël 2024-05-09 17:16:07 +02:00
parent b5c7344851
commit 1252ac48a8
15 changed files with 214 additions and 25 deletions

View file

@ -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="));
}