forked from Carolinacapote/simple_shell
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.h
More file actions
29 lines (25 loc) · 676 Bytes
/
shell.h
File metadata and controls
29 lines (25 loc) · 676 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
#ifndef HOLBERTON_H
#define HOLBERTON_H
/*Libraries*/
#include <sys/wait.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
/*prototypes*/
extern char **environ;
void shell_loop(char *argv[]);
char **function_arguments(char *command_line);
char *function_getline();
int _strlen(char *str);
int _strcmp(char *s1, char *s2);
char *_strcat(char *dest, char *src);
int execute_command(char **arguments, char *argv[], int count, char *line);
int print_integer(va_list pa);
int print_character(va_list pa);
int print_string(va_list pa);
int _printf(const char *format, ...);
int _putchar(char c);
#endif