Created
October 28, 2015 17:55
-
-
Save irrationnelle/198672f718a2c18bcf98 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef LINKEDLIST_H // To avoid repeating header declaration | |
#define LINKEDLIST_H // With this line, codes can be valid from 3 to 26 | |
#include <stdio.h> | |
#include <stdlib.h> | |
typedef int ElementType; | |
typedef struct tagNode | |
{ | |
ElementType Data; | |
struct tagNode *NextNode; | |
} Node; | |
/** Declaration for Basic Function Forms | |
IMPORTANT; Skip 'extern' for Basic Fuction Forms **/ | |
Node* SLL_CreateNode(ElementType NewData); | |
void SLL_DestroyNode(Node* Node); | |
void SLL_AppendNode(Node** Head, Node* NewNode); | |
void SLL_InsertAfter(Node* Current, Node* NewNode); | |
void SLL_InsertHead(Node** Head, Node* NewHead); | |
void SLL_RemoveNode(Node** Head, Node* Remove); | |
Node* SLL_GetNodeAt(Node* Head, int location); | |
int SLL_GetNodeCount(Node* Head); | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment