|
tiny-shell 0.2
A mini shell project aiming to gain knowledge about Win32 and Linux API
|
#include "add_path.h"#include "../core/io_wrap.h"#include "../os/operations.h"#include <limits.h>#include <stdlib.h>#include <string.h>
Go to the source code of this file.
Functions | |
| char * | strtok_r_custom (char *str, const char *delim, char **saveptr) |
| bool | in_path_env (const os_char *path_env, const os_char *new_path) |
| bool | add_path (const os_char *new_path) |
| enum run_result | run_add_path (const os_char *new_path) |
| bool add_path | ( | const os_char * | new_path | ) |
Definition at line 74 of file add_path.c.
References format_error(), format_success(), get_shell_env(), in_path_env(), and set_shell_env().
Referenced by run_add_path().


| bool in_path_env | ( | const os_char * | path_env, |
| const os_char * | new_path ) |
Definition at line 57 of file add_path.c.
References strtok_r_custom().
Referenced by add_path().


| enum run_result run_add_path | ( | const os_char * | new_path | ) |
Definition at line 101 of file add_path.c.
References add_path(), RUN_FAILED, and RUN_OK.
Referenced by invoke_runner().


| char * strtok_r_custom | ( | char * | str, |
| const char * | delim, | ||
| char ** | saveptr ) |
Definition at line 33 of file add_path.c.
Referenced by in_path_env().
