summaryrefslogtreecommitdiffstats
path: root/inc/minishell.h
blob: fd207defed61f332e12e4330f635018fb1fa6c0a (plain)
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
/* ************************************************************************** */
/*                                                          LE - /            */
/*                                                              /             */
/*   minishell.h                                      .::    .:/ .      .::   */
/*                                                 +:+:+   +:    +:  +:+:+    */
/*   By: rbousset <marvin@le-101.fr>                +:+   +:    +:    +:+     */
/*                                                 #+#   #+    #+    #+#      */
/*   Created: 2019/11/01 18:46:43 by rbousset     #+#   ##    ##    #+#       */
/*   Updated: 2019/11/01 18:46:44 by rbousset    ###    #+. /#+    ###.fr     */
/*                                                         /                  */
/*                                                        /                   */
/* ************************************************************************** */

#ifndef _MINISHELL_H__
#define _MINISHELL_H__

#include <inttypes.h>

#define FT_PS1 "joe-sh~> "

int ft_process_arg(char *arg);
int ft_echo(char **com, uint8_t n);
int ft_pwd(void);
uint8_t ft_exit(char **com);
int ft_error(const char *com, int errno);
int ft_exec(char **com);
int ft_history(char *arg);
char *ft_get_last_line(void);

#endif