]> git.sur5r.net Git - cc65/blob - samples/geos/hello1.c
Added a sample demonstrating how to create a VLIR overlay program.
[cc65] / samples / geos / hello1.c
1
2 /*
3
4     GEOSLib example
5     
6     Hello, world example - with DBox
7     
8     Maciej 'YTM/Elysium' Witkowiak
9     <ytm@elysium.pl>
10     
11     26.12.1999
12 */
13
14 #include <geos.h>
15
16 void main (void)
17 {
18
19 /* Let's show what we've got... */
20
21     DlgBoxOk(CBOLDON "Hello, world" CPLAINTEXT,
22              "This is written in C!");
23              
24 /* Normal apps exit from main into system's mainloop, and app finish
25    when user selects it from icons or menu, but here we want to exit
26    immediately.
27    So instead:
28     MainLoop();
29    we can do:
30     (nothing as this is the end of main function)
31     exit(0);
32     return;
33 */
34     return;
35 }