Class to manage a linked list. Utility that can be built on or used alone

Dependents:   Waldo_Embed_V2 elevator_with_queue RaheeNew DS1820 ... more

Good information on linked list basics here.

Information

Dependencies not included with library:

#include "mbed.h"
#include "LL.h"
  
LL<node>list;
  
int main()
{
    node *tmp;
      
    list.push((char *)"Two\n");
    list.append((char *)"Three\n");
    list.append((char *)"Four\n");
    list.push((char*)"One\n");
    list.append((char*)"Five\n");
      
    for(int i=1; i<=list.length(); i++)
    {
        tmp = list.pop(i);
        printf("%s", (char *)tmp->data );
    }
      
    error("done\n");
}
Revision:
7:4ed66162aaa8
Parent:
3:c14e7a918e21
--- a/LinkedList.h	Tue May 14 23:06:11 2013 +0000
+++ b/LinkedList.h	Sun Feb 23 14:09:48 2014 +0000
@@ -24,6 +24,7 @@
 #define LINKEDLIST_H_
 
 #include <stdint.h>
+#include "mbed.h"
 
 /**
  *  @struct node