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
- Host: GitHub
- URL: https://github.com/jojusuar/c-linkedlist
- Owner: jojusuar
- License: mit
- Created: 2024-11-14T15:37:47.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-14T15:46:08.000Z (about 1 year ago)
- Last Synced: 2025-03-15T01:17:40.549Z (9 months ago)
- Topics: c, data-structures, linked-list, queue, stack
- Language: C
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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