Practice building a library in c