1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-27 12:29:33 +00:00
cc65/samples/geos/hello1.c
izydorst 2cb06ddf8e sample programs updated for new GEOS exit/return/MainLoop policy
git-svn-id: svn://svn.cc65.org/cc65/trunk@1899 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-01-10 21:09:13 +00:00

36 lines
605 B
C

/*
GEOSLib example
Hello, world example - with DBox
Maciej 'YTM/Elysium' Witkowiak
<ytm@elysium.pl>
26.12.1999
*/
#include <geos.h>
void main (void)
{
/* Let's show what we've got... */
DlgBoxOk(CBOLDON "Hello, world" CPLAINTEXT,
"This is written in C!");
/* Normal apps exit from main into system's mainloop, and app finish
when user selects it from icons or menu, but here we want to exit
immediately.
So instead:
MainLoop();
we can do:
(nothing as this is the end of main function)
exit(0);
return;
*/
return;
}