Error in source http://wiki.amigaos.net/wiki/Exec_Memory_All
Posted: Mon Oct 03, 2016 10:32 pm
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
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