C startup routines