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

Report errors, omissions, etc. regarding the AmigaOS Documentation Wiki here.
Post Reply
Kamelito
Posts: 14
Joined: Sat Sep 10, 2016 1:48 pm

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

Post 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
User avatar
ssolie
Beta Tester
Beta Tester
Posts: 1010
Joined: Mon Dec 20, 2010 8:51 pm
Location: Canada
Contact:

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

Post by ssolie »

Fixed.
ExecSG Team Lead
Kamelito
Posts: 14
Joined: Sat Sep 10, 2016 1:48 pm

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

Post by Kamelito »

verfified fixed.
Kamelito
User avatar
LyleHaze
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 525
Joined: Sat Jun 18, 2011 4:06 pm
Location: North Florida, near the Big Bend

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

Post by LyleHaze »

Seems like a lot of effort with no return... :lol: :lol:
Post Reply