Kymy / double-linked-list-c

Double linked list implemented in C.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Double linked list

A linked list is a linear data structure. This implementation is written in C and the elements in list are of type void *.

Elements are represented with node structures. Each node holds three properties:

struct _List {
        void* data; // stores the data value 
        struct Node* next; // pointer to the next node
        struct Node* prev; // pointer to the previous node
};

To compile:

gcc list.c main.c -o main

To execute:

.\main

About

Double linked list implemented in C.


Languages

Language:C 100.0%