Base library written in C