library database emulator using structures in c code in a modularized format with malloc