change execute_call() and fork_exec() prototypes
This commit is contained in:
parent
7df3184578
commit
d90fc62be5
5 changed files with 31 additions and 23 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: mcolonna <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/04/23 14:15:12 by mcolonna #+# #+# */
|
||||
/* Updated: 2024/04/25 18:04:46 by mcolonna ### ########.fr */
|
||||
/* Updated: 2024/04/26 12:27:17 by mcolonna ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -58,7 +58,8 @@ t_command parse_command(const t_memclass mc, const char *command);
|
|||
///// EXECUTE COMMAND /////
|
||||
|
||||
// Execute the command given. Return the exit status.
|
||||
int execute_command(t_memclass mc, t_command command, char *const envp[]);
|
||||
int execute_command(t_memclass mc, t_command command,
|
||||
char *const envp[]);
|
||||
|
||||
///// ERROR /////
|
||||
|
||||
|
|
@ -78,6 +79,6 @@ char **get_path(char *const envp[]);
|
|||
// Search the program in PATH.
|
||||
// Returns the path of the program to use, or NULL if there is none.
|
||||
const char *search_path(
|
||||
const t_memclass mc, const char **path, const char *prog);
|
||||
const t_memclass mc, const char **path, const char *prog);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue