Variables globales dans un fichier header

This commit is contained in:
rick 2021-02-20 18:33:22 +01:00
parent 831f45b662
commit f044af9e8d
Signed by: Rick
GPG key ID: 2B593F087240EE99
4 changed files with 16 additions and 2 deletions

View file

@ -6,6 +6,7 @@
* @date 2021
*/
#include "vars.h"
#include "parser.h"
#include <stdio.h>

View file

@ -10,8 +10,6 @@
#ifndef _PARSER_H_
# define _PARSER_H_
#define MAX_LENGTH 200 /* taille maximum des tableaux utilisés */
char* get_input();
void get_command(char *args[], char find);
void parse_string(char *args,char *commands[], char find);

14
src/boitoutil/vars.h Normal file
View file

@ -0,0 +1,14 @@
/* Fichier contenant les variables globales nécessaires
* aux bibliothèques et au shell.
*
* @file vars.h
* @author rick <rick@gnous.eu>
* @date 2021
*/
#ifndef _VARS_
# define _VARS_
#define MAX_LENGTH 200 /* taille maximum des tableaux utilisés */
#endif

View file

@ -4,6 +4,7 @@
* @date 2021
*/
#include "vars.h"
#include "parser.h"
#include "essential_shell.h"