Skip to content

Commit

Permalink
Ajout du gitignore + suppression des fichiers ignorés (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
albinpoignot committed Dec 14, 2011
1 parent ad19047 commit d361724
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Ignore xxx.xx~ kate back up files
*~
8 changes: 3 additions & 5 deletions cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@ void parse_args( cmd * c )
char * pch;

pch = strtok (str," |");

while (pch != NULL)
{
printf ("%s\n",pch);




pch = strtok (NULL, " |");
}

}

14 changes: 7 additions & 7 deletions cmd.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

typedef struct
{
char *initial_cmd;
char **membres_cmd;
unsigned int nb_membres;
char ***cmd_args;
unsigned int *nb_args_membres;
char ***redir;
int **type_redir;
char *initial_cmd; // Chaine initiale tapee par l'utilisateur
char **membres_cmd; // Chaine initiale decoupee en membres ([i] = membre i)
unsigned int nb_membres; // Nombre de membres
char ***cmd_args; // cmd_args[i][j] contient le jieme arguement du ieme membre
unsigned int *nb_args_membres; // Nombre d'argements par membre
char ***redir; // Stocke les chemins vers les fichiers de redirection
int **type_redir; // Stocke le sens des redirections
} cmd;

void parse_args( cmd* c );
1 change: 1 addition & 0 deletions test.c
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test

0 comments on commit d361724

Please sign in to comment.