Skip to content

Instantly share code, notes, and snippets.

View chicodias's full-sized avatar

Francisco Miranda chicodias

View GitHub Profile
@jlsilva1994
jlsilva1994 / avl_strings.c
Last active January 3, 2023 10:54 — forked from tonious/avl.c
A quick AVL tree implementation in c, to store Strings.
/*********************************************************************************************
José Luis Silva
Some alterations to the original to permit save strings (char*) in the AVL instead of integers
Just to complete your repository and save some time to other people like me :-)
**********************************************************************************************/
//#define _XOPEN_SOURCE 500 /* Enable certain library functions (strdup) on linux. See feature_test_macros(7) */
#include <time.h>
#include <stdlib.h>
#include <stdio.h>