Skip to content

Latest commit

 

History

History
13 lines (12 loc) · 624 Bytes

File metadata and controls

13 lines (12 loc) · 624 Bytes

Data Structures

The repo implements a bunch of common data structures in C
These could definitely be implemented better
Some Problems:

  1. Use void* to make generic and does not take size of object, so can only pass and receive pointers
  2. Dont have the nice wrapper stuff that C allows

Compilation

This is written for gcc.

Example compilation:
gcc graph_test.c ../src/graph.c ../src/list.c ../src/vector.c ../src/heap.c ../src/queue.c ../src/stack.c ../src/tree_set.c ../src/rbtree.c ../src/tree_map.c ../src/priority_queue.c ../src/iterator.c

Running the Code

./a.out 100