]> git.sur5r.net Git - cc65/blob - samples/geos/yesno.c
Remove trailings spaces from CBM-related asm files
[cc65] / samples / geos / yesno.c
1 /*
2    GEOSLib example
3
4    example of using DlgBoxYesNo, DlgBoxOkCancel and DlgBoxOk functions
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     do {
18         if (DlgBoxYesNo("Are you female?", "(don't lie ;-)") == YES) {
19             DlgBoxOk("You claim to be woman!", "You wanna dance?");
20         } else {
21             DlgBoxOk("Ergh, another man...", "Let's go for a beer.");
22         };
23     } while (DlgBoxOkCancel("Do you want to try again?", "") == OK);
24 }