Traitement-signal-plantes/Code-C/queue.h
2022-06-10 15:50:27 +02:00

29 lines
795 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
void setCharLen(Pqueue elem , int _charLen);
void setTabChar(Pqueue elem , int _charLen , char *_tabChar);
void setNextE(Pqueue elem , Pqueue next);
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);