C libraries for class, most likely full of bugs