[sdiy] int-main VS void-main....To C or not to C that's the question! Or C are ice cream in hell! :-)
karl dalen
dalenkarl at yahoo.se
Tue Jan 11 12:39:14 CET 2011
>Jason Tribbeck <jason at tribbeck.com>:
>'re doing embedded development, then typically your main() won't
>return at all (it'll sit in an endless loop somewhere), so void
>main(void) is the order of the day.
Ok, but when i do void main(void) the C30 compilator barks and says
not int but compiles. When i do int main() it does not bark and
compile and when i do main() it barks says assumes int and compiles.
Ice cream in Hell! :-)
>C isn't that hard: void (*(*f[])())() defines f as an array of unspecified >size, of pointers to functions that return pointers to functions that >return void
sorry, have no idea what your talking about.
More information about the Synth-diy
mailing list