-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.h
More file actions
33 lines (24 loc) · 678 Bytes
/
shell.h
File metadata and controls
33 lines (24 loc) · 678 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef SHELL_H
#define SHELL_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/wait.h>
/* execute_program.c */
int execute_program(char **args, char **env);
/* handle_path.c */
int _path(char **command_arr, char **env);
char *getpath(char **env);
/* string_functions.c */
char *trim_spaces(char *line);
char **command_args(char **cmd_arr, char *full_line);
char *concat_command(char *command, char *directory);
/* free_args.c */
void free_arr(char ***argv);
void free_args(char ***argv, char *command);
/* handle_exit.c */
int __exit(char *status_code, char *command);
/* handle_env.c */
int handle_env(char **env);
#endif