C Compiler?!?!

I've been trying to Compile C on the PocketC, but it dosen't seem to be doing it, for example:
<b>int</b> main()
finds problems in that line itself.
How is that possible, I've seen the exaples that come with the prog
they don't #inculde <anylibraries.h>:?:

Posted: Tue Oct 15, 2002 7:05 am

by guy

PocketC functions do not have a declared return type. The type is determined by the type of the expression in the return statement. Remove the int before the main().

PocketC does not support the system header library directory include format <>. You have to use the program include format "" with a complete path.

PocketC is not C. It has a large number of similarities and a few differences. It is possible to write code that is portable between C and PocketC you just need a few #ifdef lines or some cunning use of macros for function return types.