7.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
When targeting PIC MCUs using MPLAB XC8 a void
return type for this function has
been assumed.
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.