add comment in queue.h

This commit is contained in:
quentin.perret 2022-06-10 15:16:13 +02:00
parent 9386dd5364
commit 8c9de2d97d
2 changed files with 17 additions and 3 deletions

View file

@ -50,7 +50,7 @@ int getCharLen(Pqueue elem){
return elem->charLen;
}
char *gettabChar(Pqueue elem){
char * gettabChar(Pqueue elem){
assert(elem);
return elem->tabChar;
}

View file

@ -1,13 +1,27 @@
typedef struct queue *Pqueue;
//Constructors
Pqueue createE(int lenChar);
Pqueue createEEmpty(); //create a new element but all variables in are null, use to create the first element of the queue in the main before define the elements in
// seter /getter pour la struct
// constructeur avec 2 paramètres : strlen et tabchar
//Getters
Pqueue getNextE(Pqueue elem);
Pqueue getNextE(Pqueue elem);
char * gettabChar(Pqueue elem);
//Setters
Pqueue setCharLen(Pqueue elem , int _charLen);
Pqueue setTabChar(Pqueue elem , int _charLen , char *_tabChar);
Pqueue addLastQ(Pqueue elem, const char* str, int len);
//Removers
Pqueue rmLastE(Pqueue elem);
Pqueue rmFrstE(Pqueue elem);
Pqueue nextDelFrst(Pqueue elem);
Pqueue addLastQ(Pqueue elem, const char* str, int len);
Pqueue nextDelFrst(Pqueue elem);
//print function
void printE(Pqueue elem);