-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.h
More file actions
32 lines (30 loc) · 903 Bytes
/
shell.h
File metadata and controls
32 lines (30 loc) · 903 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
#ifndef SHELL_H
#define SHELL_H
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <sys/types.h>
extern char **environ;
char *habiba_read(void);
char **abdelhamid_tokin(char *order, int *n);
int _execv(char **order_words, int n, char **argv, int ix);
char *string_cpy(char *dest, char *src);
char *string_cat(char *destination, char *source);
int string_len(char *s);
int string_cmp(char *s, char *s1);
char *pathhandle(char *command);
void free_the_array(char **array);
char *get_environment(char *var);
char *get_path(char *order);
void _printerror(char *nm, char *cmd, int ix);
void _printerror(char *nm, char *cmd, int ix);
void string_reverse(char *st, int length);
char *_intger_to_assci(int num);
int bulit_in(char *s, char **env);
void print_environment(char **env);
#endif