Skip to content
This repository was archived by the owner on Feb 28, 2022. It is now read-only.

pseudocc/zc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZC ZC CI

C library for collections that supports generic types.

In C++ we can use the std::vector or other template containers that are pretty helpful, while in C we don't have those, and that's how this repository came into being.

Vector

I am not only a big fan of C but JavaScript as well, so some of the member functions of zvec_t are inspired by Array.prototype, like: shift and unshift.

Example usages are simple, but you might need to suppress some warnings, like -Wint-convertion for gcc.

zvec_t ivec = zvec_new(sizeof(int));  // []
zvec_push(ivec, (int)29);             // [29]
zvec_unshift(ivec, (int)11);          // [11,29]
Name Status
Declaration Done
Implementaion Partial
Test Done
Man Pages In Progress

Build

GNU Makefile.

make

Installation

TODO: Not even started.

Test

Run all unit tests after the build.

./ztest

TODO: command line arguments to run specific category and case.

Documentation

See manual pages under man/

About

c library for collections

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published