https://github.com/mp81ss/miniclib
Mini C data-structure library containing vector and list
https://github.com/mp81ss/miniclib
c data-structures header-only list vector
Last synced: about 1 month ago
JSON representation
Mini C data-structure library containing vector and list
- Host: GitHub
- URL: https://github.com/mp81ss/miniclib
- Owner: mp81ss
- License: bsd-3-clause
- Created: 2020-11-27T14:49:17.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-09-15T10:33:23.000Z (almost 3 years ago)
- Last Synced: 2025-01-23T15:23:04.806Z (over 1 year ago)
- Topics: c, data-structures, header-only, list, vector
- Language: C++
- Homepage:
- Size: 244 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.txt
- License: LICENSE
Awesome Lists containing this project
README
# ARCHIVED - Moved to gitlab
CLibrary is just a dummy data-structure library containing vector and list only.
Both vector and list are 2 single and independent headers.
The list requires dynamic memory, mallocating the nodes, but has some tricks
to make it fast in traversal and memory efficient. Moreover it is safe: All
pointers are NULL-checked and all indexes are checked for out-of-bound errors.
vector is speed oriented, no checks are done and user must check that no NULL
pointers are passed if not explicitly allowed and indexes are in valid range.
See example.c or directly the headers (fully doxygenated), or the help file.
Tested on windows with CLang v11 and VS2019, Linux with gcc v4.8.5
See file cv_bench.c