rostok2112 / libstack

Simple stack on void pointers(for value) and based on linked list. For own-use.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple stack

Simple stack on void pointers(for value) and based on linked list. For own-use.

Tools

GCC and Make

sudo apt install build-essential

CMake

sudo apt install cmake

Depends

No depends

Build

Just run

sh build.sh 

Or

./build.sh 

If you need specific type of lib like shared, just run

sh build.sh SHARED

Usage

Just move stack.h from export/ to include/ dir and move libstack.a to lib/ dir of your project

Compile example with this lib:

gcc somesource.c -lstack -L./lib -I./include

Examples of usage and docs inside example/ dir

About

Simple stack on void pointers(for value) and based on linked list. For own-use.


Languages

Language:C 79.4%Language:CMake 15.2%Language:Shell 5.5%