check some TODOs

- "is t_call.argv ended by NULL?"
- "does it return the good path if there is several possibilities?"
This commit is contained in:
mcolonna 2024-04-29 15:56:49 +02:00
parent 117631d50e
commit 8d5ccfeb82
3 changed files with 6 additions and 6 deletions

View file

@ -6,7 +6,7 @@
/* By: mcolonna <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/23 14:15:12 by mcolonna #+# #+# */
/* Updated: 2024/04/29 15:48:25 by mcolonna ### ########.fr */
/* Updated: 2024/04/29 15:56:26 by mcolonna ### ########.fr */
/* */
/* ************************************************************************** */
@ -77,8 +77,10 @@ void fatal_error(const char *msg);
// Return a list of strings ended by NULL.
char **get_path(char *const envp[]);
// Search the program in PATH.
// Search the program in $PATH.
// Returns the path of the program to use, or NULL if there is none.
// If there is several possibilities, it returns the one from the first path
// given in $PATH.
const char *search_path(
const t_memclass mc, const char **path, const char *prog);