-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnivel2.h
More file actions
31 lines (27 loc) · 811 Bytes
/
nivel2.h
File metadata and controls
31 lines (27 loc) · 811 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
/* nivel2.h - Parte 2 de Aventura 2 - Gian Lucas Martín Chamorro,
Tomás Bordoy García-Carpintero y Jordi Antoni Sastre Moll*/
#define _POSIX_C_SOURCE 200112L
//Librerías
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
//Tamaño línea de comandos y nº máximo de tokens
#define COMMAND_LINE_SIZE 1024
#define ARGS_SIZE 64
//Colores y estilos
#define RED "\x1B[31m"
#define BLU "\x1B[34m"
#define WHT "\x1B[37m"
#define RESET "\x1B[0m"
#define BOLD "\e[1m"
char * read_line(char *line);
int imprimir_prompt();
int execute_line(char * line);
int parse_args(char ** args, char * line);
int check_internal(char ** args);
int internal_cd(char ** args);
int internal_export(char ** args);
int internal_source(char ** args);
int internal_jobs(char ** args);