Minishell
Loading...
Searching...
No Matches
find_path.c File Reference
#include "../../include/main.h"
#include "../../include/utils.h"
#include <sys/types.h>
#include <dirent.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for find_path.c:

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)
 

Function Documentation

◆ find_exec_from_abs()

int find_exec_from_abs ( char * path,
char * program,
run_command_t * command )

This finds an executable path inside an absolute path

Parameters
pathPath to search the executable
programexecutable name to search for
command
Returns
returns 1 if it was not found and 84 if there was an error
Here is the call graph for this function:

◆ save_exec_path()

int save_exec_path ( data_t * data,
run_command_t * command )
Here is the call graph for this function:

◆ save_executable()

void save_executable ( char * path,
char * program,
run_command_t * command )
Parameters
pathThis is a path where the program executable is saved
programcontains the name of the executable
command
Here is the call graph for this function: