-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.h
More file actions
33 lines (27 loc) · 800 Bytes
/
main.h
File metadata and controls
33 lines (27 loc) · 800 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
#ifndef _SIMPLE_SHELL_
#define _SIMPLE_SHELL_
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <sys/wait.h>
#include <string.h>
#include <dirent.h>
#include <limits.h>
int _putchar(char c);
int _strlen(char *s);
void _puts(char *str);
char *_strcpy(char *dest, char *src);
char *_strcat(char *dest, char *src);
int _strcmp(char *s1, char *s2);
int check_path(char *command);
char *_getenv(char **env, char *command);
char *get_path(char **envp, char *command);
int command_exists(char *command);
void _printenv(char **envp);
int exec_command(char *line, char *progname, char **envp, int exit_status);
void _errputs(char *s);
int _errputchar(char c);
int _errtoi(char *s);
void func(char *progname, char **args, int arg_count, char *line, int e);
#endif