crud written in C