-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCmd.h
More file actions
31 lines (27 loc) · 1.2 KB
/
Cmd.h
File metadata and controls
31 lines (27 loc) · 1.2 KB
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
#ifndef CMD_H
#define CMD_H
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "FoncString.h"
#include "Structure.h"
#define MaxLen = 100;
// void printNoeud(noeud *n);
extern bool mkdir(noeud *p_actuellement,char *chaine);
extern void pwd( noeud* p_actuellment);
extern noeud* chemin_valide(noeud *p_actuellment,Chemin *chemin,bool fin);
extern noeud *cd(noeud *p_actuellment,Chemin * pathn,bool fin);
extern noeud * cd_dernier(noeud *p_actuellment,Chemin * path,bool est_destination);
extern void ls(noeud * p_actuellment);
extern bool touch(noeud *p_actuellement,char *chaine );
extern void print (noeud *n, int inc);
extern bool cp(noeud *p_actuellment,Chemin *source, Chemin* destination);
extern bool creation_sous_arbre(noeud *d, liste_noeud *source,bool suite);
extern bool d_est_sous_Arbre_s(noeud *s, noeud *d);
extern bool rm(noeud *p_actuellment,Chemin *source);
extern bool mv(noeud *p_actuellment,Chemin *source, Chemin* destination);
extern bool executer(char *nomF,noeud *root, noeud *p_actuellement);
extern void suppression_sous_arbre_2(noeud * n,liste_noeud *liste_ou_est_n);
extern bool switch_cmd(noeud *root, noeud **p_actuellement,char * chaine,int *i);
#endif