Skip to content
This repository was archived by the owner on Mar 12, 2018. It is now read-only.

struct LList

Camille Briand edited this page Sep 7, 2017 · 1 revision

struct LList

Structure used for double linked lists

Structure declared with a typedef, so you do not have to specify struct LList when declaring a new LList


Properties:

  • int val: the value of the element (node in the LList)
  • struct LList* next: pointer on the next element (node) in the LList, NULL if last element
  • struct LList* prev: pointer on the previous element (node) in the LList, NULL if first element

We recommend you to use the functions provided with this structure to manipulate your LLists; see the documentation of the functions for more information


struct LList
{
    int val;
    struct LList next;
    struct LList prev;
}

Clone this wiki locally