forked from amartinezre05/simple_shell
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsimple_shell.h
More file actions
28 lines (28 loc) · 717 Bytes
/
simple_shell.h
File metadata and controls
28 lines (28 loc) · 717 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
#ifndef _SIMPLESHELL_
#define _SIMPLESHELL_
/* Libraries */
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include <signal.h>
/* Prototypes */
char **usetok(char *buff);
extern char **environ;
int _strcmp(char *s1, char *s2);
int _strlen(char *s);
char *_strcpy(char *dest, char *src);
char *_strcat(char *dest, char *src);
char *_strtok(char *str, char *limi);
char *_strchr(char *stri, char car);
unsigned int _strcspn(char *str, char *pre);
void _printenv(void);
char *concat(char *s1, char *s2);
char *get_path(void);
char **concat_path(char **args);
void _execve(char **args);
void free_double(char **ptr);
#endif