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