From the CB opening screen, choose "Create new project", then "console application", then select "C" (and not "C++") from the language options. This will create a project with a main.c file which will compile as C code. When adding further files to the project, make sure they have a .c extension and not a .cpp one.