-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathargument.h
More file actions
37 lines (31 loc) · 1009 Bytes
/
argument.h
File metadata and controls
37 lines (31 loc) · 1009 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
34
35
36
37
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
struct argument
{
unsigned int SPACE : 1 ; // Vire les espaces en double
unsigned int LIGNE : 1 ; // Vire les ligne en trop
unsigned int CONVERT : 1 ; // Convertie en matrice
unsigned int FILE_IN : 1 ; // Nom fichier IN
unsigned int FILE_OUT: 1 ; // Nom fichier OUT
unsigned int FILE_REN: 1 ; // Nom fichier Renome les fichier
unsigned int ERREUR : 2 ; // 0: pas erreur 1: Incompatible 2: 3:
char ** Files_Names ; // Future tableau avec noms fichiers
int Nbr_Files ; //
};
#ifdef ARGUMENT
struct argument ARG =
{ 0, 1, 1,
0, 0, 0,
0,
NULL, 0
};
int AfficheAide ( int Code, char * Message, char * Nom ) ;
int Lit_Arguments ( int argc, char ** argv ) ;
extern int AjouteNom ( char * Nom, char *** Liste, int * Nbr ) ;
#else
extern struct argument ARG ;
extern int Lit_Arguments ( int argc, char ** argv ) ;
extern int AfficheAide ( int Code, char * Message, char * Nom ) ;
#endif