complete C project common code