-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathshell.h
More file actions
29 lines (26 loc) · 703 Bytes
/
shell.h
File metadata and controls
29 lines (26 loc) · 703 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
#ifndef SHELL_H_
#define SHELL_H_
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <string.h>
#include <sys/wait.h>
#include <unistd.h>
#include <sys/stat.h>
#define bufsize 1024
void _exit_(char *line);
void _env_(char **env);
void _printnumber_(int n);
void _freestrs_(char **str);
void _ts_handler_(char *line);
void _execute_(char **array_token);
void _echo_(char *str);
void _strcat_(char *dest, char *src);
void _strcpy_(char *dest, char *src);
void _notfound_(char *av, int i, char *array_token);
int _strcmp_(char *s1, char *s2);
int _strlen_(char *s);
int _builtin_(char **path, char *cmd);
char *_findpath_(char **env);
char **_strtok_(char *line, char token);
#endif