-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.h
More file actions
38 lines (29 loc) · 740 Bytes
/
Copy pathshell.h
File metadata and controls
38 lines (29 loc) · 740 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
34
35
36
37
38
#ifndef SHELL_H
#define SHELL_H
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <string.h>
#include <sys/wait.h>
#include <errno.h>
#include <fcntl.h>
#define DELIM " \t\n"
extern char **environ;
/*functions*/
int _execute(char **cmd, char **argv, int index);
void freearr(char **array);
char *_getline(void);
char *_strdup(const char *string);
int _strcmp(char *s1, char *s2);
int _strlen(char *s);
char *_strcat(char *dest, char *src);
char *_strcpy(char *dest, char *src);
char **taketoken(char *str);
char *_getenv(char *cmd);
void _printerror(char *name, char *cmd, int index);
char *_itoa(int n);
void _rev(char *str, int l);
char *_getpath(char *cmd);
#endif