1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-25 17:29:50 +00:00
cc65/samples/geos/hello1.c

34 lines
638 B
C
Raw Normal View History

/*
GEOSLib example
2022-04-17 14:06:45 +00:00
Hello, world example - with DBox
2022-04-17 14:06:45 +00:00
Maciej 'YTM/Elysium' Witkowiak
<ytm@elysium.pl>
2022-04-17 14:06:45 +00:00
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!");
2022-04-17 14:06:45 +00:00
// 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(EXIT_SUCCESS);
// return;
return;
}