Skip to content

joao-conde/libdsa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libdsa

C data structures and algorithms library.

A personal endeavor to learn the inner workings of different data structures and algorithms.

This library has been written for educational purposes. Consider using production-ready template container libraries focused on performance as opposed to readability.

Features

Examples

Check the examples folder for more uses of libdsa.

#include <dsa.h>

int main() {
    mytype m = { .a = 1, .b = "2" };
    vector *v = vector_init(sizeof(mytype));
    vector_push(v, &m);
    vector_pop(v);
    vector_free(v);
}

Usage

Install:

$ make release
$ make install

Include:

#include <dsa.h>

Compile your code with -ldsa:

$ gcc yourcode.c -ldsa

References