END_OF_MAIN man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

END_OF_MAIN(3)			Allegro manual			END_OF_MAIN(3)

NAME
       END_OF_MAIN  -  Macro  to  put after your main() function. Allegro game
       programming library.

SYNOPSIS
       #include <allegro.h>

       Macro END_OF_MAIN()

DESCRIPTION
       In order to maintain cross-platform compatibility, you have to put this
       macro  at  the  very  end  of  your main function. This macro uses some
       `magic' to mangle your main procedure on platforms that	need  it  like
       Windows,	 some flavours of UNIX or MacOS X. On the other platforms this
       macro compiles to nothing, so you don't have to #ifdef around it. Exam‐
       ple:

	  int main(void)
	  {
	     allegro_init();
	     /* more stuff goes here */
	     ...
	     return 0;
	  }
	  END_OF_MAIN()

SEE ALSO
Allegro				 version 4.4.2			END_OF_MAIN(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net