An open API service indexing awesome lists of open source software.

https://github.com/jojusuar/c-linkedlist

C implementation of a generic linked list with queue and stack functionalities
https://github.com/jojusuar/c-linkedlist

c data-structures linked-list queue stack

Last synced: 5 months ago
JSON representation

C implementation of a generic linked list with queue and stack functionalities

Awesome Lists containing this project

README

          

# C-LinkedList
C implementation of a generic linked list with queue and stack functionalities.

# Installation
Drop `list.c` and `list.h` in your project folder.
Add `#include "list.h"` to the top of the .c file where you'll call the functions.

# Usage
`headInsert(List *, void *)` and `tailInsert(List *, void *)` accept only generic void * types, which
means you have to cast elements to (void *).
`get(List *, int )` and `pop(List *, int )` return void *, so you have to cast the element back to its original type.

## External Credit
Originally adapted from @Leyxargon at https://github.com/Leyxargon/c-linked-list