27 lines
756 B
C
27 lines
756 B
C
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
|
|
// 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 nextDelFrst(Pqueue elem);
|
|
|
|
//print function
|
|
void printE(Pqueue elem); |