Skip to content

sanjay-charran/libstack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Static Library For A Simple Stack in C

The library serves to save some time when using this common datastructure rather than writing a new one. A point of note, is that altough there is no restriction on the data being of the same type across different nodes in terms of storage, you would likely have to jump through some hoops to actually make use of said data if of different types which would be pointless.
I personally wrote this mostly for my personal use but if you would also like to feel free. I'll likely update it to improve as time goes but no gurantees on timing.

Compiling the Library

The requirements for compiling this library is the C standard library (libc), version 2.36 of libc and C18 was used for testing.
The library is compiled using GNU Make (v4.3) and specifies GCC, however, this can be changed to your own choice of compiler by editing the Makefile.
The Makefile contains options for making the library (libstack.a) via the following  command in the project's root dir: `make`. You can build examples included with the library using `make examples`. For simplicity, you can use `make all` to build everything.
There also exists options for removing non-source files and dirs:
`make clean` for all bin, obj, and lib directories and files inside them
`make clean_obj` for just obj dir and files inside
`make clean_lib` for just lib dir and files inside
`make clean_bin` for just bin dir and files inside

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published