4.3.2 The Prototype for main
The prototype for the main()
function is:
int main(void);
Example
The following shows an example of how main()
might be
defined:
int main(void)
{
while(1)
process();
}
Differences
The 8-bit compilers used a void
return type for this
function.
Migration to the CCI
Each program has one definition for the main()
function.
Confirm the return type for main()
in all projects previously compiled for
8-bit targets.