Skip to content

DHPS-Solutions/dhps-lib

Repository files navigation

dhps-lib

Generic algorithms and datastructures for C.

datastructures

  • dynamic hashtable
  • dynamic array / list
  • heap queue
  • circular queue
  • stack
  • string
  • linked list
    • singly linked
    • doubly linked
  • binary search tree

sorting

  • insertion sort
  • quicksort
  • heapsort
  • bubblesort

Naming conventions and semantics

Macro's:

  • All caps name.
  • Multiline do ... while(0)

Functions:

  • Static functions are prefixed with "__".
  • Newline for first bracket.

Structs:

  • Snake case name suffixed with a "_t"
  • No typedef

General: