init code in C