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

Report errors, omissions, etc. regarding the AmigaOS Documentation Wiki here.

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

Postby Kamelito » Mon Oct 03, 2016 11: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
Kamelito
 
Posts: 14
Joined: Sat Sep 10, 2016 2:48 pm

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

Postby ssolie » Tue Oct 04, 2016 6:28 pm

Fixed.
AmigaOS Development Team Lead
Be authentic. Get AmigaOS.
User avatar
ssolie
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 1000
Joined: Mon Dec 20, 2010 9:51 pm
Location: Canada

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

Postby Kamelito » Thu Oct 06, 2016 1:57 pm

verfified fixed.
Kamelito
Kamelito
 
Posts: 14
Joined: Sat Sep 10, 2016 2:48 pm

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

Postby LyleHaze » Thu Oct 06, 2016 10:44 pm

Seems like a lot of effort with no return... :lol: :lol:
User avatar
LyleHaze
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 502
Joined: Sat Jun 18, 2011 5:06 pm
Location: Georgia, USA, just North of the Florida border


Return to AmigaOS Documentation Wiki

Who is online

Users browsing this forum: No registered users and 1 guest

cron