28 lines
621 B
C
28 lines
621 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
|
|
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); |