Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #ifndef _LLIST_H_INCLUDED
- #define _LLIST_H_INCLUDED
- //MacrosInit
- typedef enum Boolean {
- FALSE = 0, TRUE = 1
- } Boolean;
- typedef enum Status {
- OK, ERROR
- } Status;
- //MacrosEnd
- typedef struct ListNode {
- void * pData;
- struct ListNode * next;
- }ListNode;
- typedef ListNode * List;
- void initList(List * l);
- Boolean VerifyEmptyList(List l);
- ListNode* NewNode(void* data);
- ListNode* NewNode();
- Status InsertIni(List* l, void* data);
- Status InsertEnd(List* l, void* data);
- int ListSize(List l);
- void PrintNodes(List l, char* (*f)(void* data));
- List findPreviousNode(List l, List node);
- void removeNode(List* l, List l2, List l3);
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement