![]() |
tgrekov-pipex
HIVE pipex May 2024
|
Definition in file get_cmd.c.
#include <unistd.h>#include <stdlib.h>#include "../utils/utils.h"#include <libft.h>Go to the source code of this file.
Functions | |
| char * | get_cmd (char **paths, char *name) |
Find and return the first existing file with called name from the array of paths. | |
| char * get_cmd | ( | char ** | paths, |
| char * | name | ||
| ) |
Find and return the first existing file with called name from the array of paths.
| paths | Null-terminated array of paths with trailing forward slashes |
| name | Name of command to search for |
| char* | Full path to the command |
Definition at line 33 of file get_cmd.c.
References err(), ft_strdup(), and ft_strjoin().