Minishell
|
#include "../../include/main.h"
#include "../../include/utils.h"
#include <sys/types.h>
#include <dirent.h>
#include <stdlib.h>
#include <string.h>
Functions | |
void | save_executable (char *path, char *program, run_command_t *command) |
int | find_exec_from_abs (char *path, char *program, run_command_t *command) |
int | save_exec_path (data_t *data, run_command_t *command) |
int find_exec_from_abs | ( | char * | path, |
char * | program, | ||
run_command_t * | command ) |
This finds an executable path inside an absolute path
path | Path to search the executable |
program | executable name to search for |
command |
int save_exec_path | ( | data_t * | data, |
run_command_t * | command ) |
void save_executable | ( | char * | path, |
char * | program, | ||
run_command_t * | command ) |
path | This is a path where the program executable is saved |
program | contains the name of the executable |
command |