-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell.h
39 lines (35 loc) · 1001 Bytes
/
shell.h
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
34
35
36
37
38
39
#ifndef HOLBERTON_H
#define HOLBERTON_H
#define DELIM " \n"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <fcntl.h>
#include <string.h>
#include <signal.h>
extern char **environ;
void signal_to_handel(int sig);
int builtins(char **input, char *buff, int exit);
char *concatation(char *tmp, char **input, char *token);
int execute(char **input, char *buff, char *fpathbuff);
char *fpath(char **input, char *PATH, char *c);
int _environ(void);
int _strcmp(char *s1, char *s2);
char *_getenv(const char *member);
char *_memset(char *s, char c, unsigned int bytes);
char **make_token(char *buff);
int path_members(char *s);
int p_prompt(void);
void _puts(char *s);
char *readline(void);
int number_str(char *s);
char *_strdup(char *s);
int _strlen(const char *s);
char *_strcat(char *dest, char *src);
int _strcmp_path(const char *PATH, const char *environ);
int _cd(char **input);
#endif