This file contains hidden or 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
| /* This implementation is a highly | |
| * modified version taken from the book | |
| * Algorithm Design Manual - Skiena. | |
| */ | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include "list.h" | |
| void initList(list **l) |
This file contains hidden or 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
| typedef struct list | |
| { | |
| int item; | |
| struct list *next; | |
| } list; | |
| /* l - Head of the list | |
| * node - Node to be deleted from the list. | |
| */ | |
| void listDeleteByNode(list **l, list *node) |
This file contains hidden or 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
| #include <stdio.h> | |
| int main() | |
| { | |
| printf("Hello World"); | |
| return 0; | |
| } |