/PlatonicPlatypus

Personal library for C - Assortment of independants modules

Primary LanguageC

PlatonicPlatypus

Personal C library

Guidelines

  • Documentation of every function MUST BE available in the header file
  • Functional tests of every component SHOULD BE available in the directory tests
  • Examples of every component MAY BE available in the directory examples
  • #define SHOULD NOT be used as "functions" ; use inline keyword instead
  • Functions XXXX_clear() MUST perform a complete clean-up of the entity, and MAY BE re-usable afterwards without having to call XXXX_init()

Tests

Just run reg.sh in order to start all the functional tests available in the directory tests

$ ./reg.sh
### array.c ###
[ TEST ] Running...     PASSED
### list.c ###
[ TEST ] Running...     PASSED
### utils.c ###
[ TEST ] Running...     PASSED

Total:
        3 Passed
        0 Failed
Dump in ./.tests/reg.log

Current implementations

  • Array
  • Linked list
  • Logger
  • Fatal assert
  • Time

Futures implementations

  • Hashmaps
  • array_sort()
  • ...