Traitement-signal-plantes/Code-C/queue.h
2022-06-10 17:20:10 +02:00

26 lines
587 B
C

typedef struct queue *Pqueue;
//Constructors
Pqueue createE(int lenChar, const char* _tabChar);
Pqueue createEmpty();
//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, const 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);