27 lines
689 B
C
27 lines
689 B
C
typedef struct queue *Pqueue;
|
|
|
|
//Constructors
|
|
Pqueue queueCreateE(int lenChar, const char* _tabChar);
|
|
Pqueue queueCreateEmpty();
|
|
|
|
|
|
//Getters
|
|
Pqueue queueGetNextE(Pqueue elem);
|
|
int queueGetCharLen(Pqueue elem);
|
|
char* queueGetTabChar(Pqueue elem);
|
|
|
|
//Setters
|
|
void queueSetCharLen(Pqueue elem, int _charLen);
|
|
void queueSetTabChar(Pqueue elem, int _charLen, const char *_tabChar);
|
|
void queueSetNextE(Pqueue elem , Pqueue next);
|
|
|
|
void queueAddLastQ(Pqueue elem, const char* str, int len);
|
|
|
|
//Removers
|
|
Pqueue queueRmLastE(Pqueue elem);
|
|
Pqueue queueRmFrstE(Pqueue elem);
|
|
Pqueue queueNextDelFrst(Pqueue elem);
|
|
|
|
//print function
|
|
void queuePrintE(Pqueue elem);
|
|
void queuePrintWholeQ(Pqueue firstE); |