Page 1 of 1

Error in source http://wiki.amigaos.net/wiki/Exec_Memory_All

Posted: Mon Oct 03, 2016 10:32 pm
by Kamelito
Step to reproduce :
Goto : http://wiki.amigaos.net/wiki/Exec_Memory_Allocation
Look for "Sample Code for Allocating Multiple Memory Blocks"
Search for line : "VOID main()"
Result : the example won't compile because the return type of "main()" should be "int" even if there's no return in the code. Adding a "return 0;"?

Same problem here, but as it's marked obsolete... http://wiki.amigaos.net/wiki/Obsolete_E ... Allocation

Kamelito

PS nice post about this topic @
http://stackoverflow.com/questions/2044 ... in-c-and-c

Re: Error in source http://wiki.amigaos.net/wiki/Exec_Memory

Posted: Tue Oct 04, 2016 5:28 pm
by ssolie
Fixed.

Re: Error in source http://wiki.amigaos.net/wiki/Exec_Memory

Posted: Thu Oct 06, 2016 12:57 pm
by Kamelito
verfified fixed.
Kamelito

Re: Error in source http://wiki.amigaos.net/wiki/Exec_Memory

Posted: Thu Oct 06, 2016 9:44 pm
by LyleHaze
Seems like a lot of effort with no return... :lol: :lol: