Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /********************************************//**
- * @file linkedList.h
- * @brief Implementation of linked list container for C strings
- *
- ***********************************************/
- #ifndef LINKEDLIST_H_INCLUDED
- #define LINKEDLIST_H_INCLUDED
- #include <stdint.h>
- #include <stdlib.h>
- typedef struct NodeT{
- char *data;
- struct NodeT *next;
- struct NodeT *prev;
- }NodeTypeDef;
- typedef struct{
- NodeTypeDef *head;
- NodeTypeDef *last;
- uint32_t length;
- }LinkedListTypeDef;
- void listInit(LinkedListTypeDef* linkedList);
- void listPushBack(LinkedListTypeDef* list, char* str);
- char* listPop();
- char* listFetch();
- void listClear(LinkedListTypeDef* linkedList);
- #endif // LINKEDLIST_H_INCLUDED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement