Add the DragonFly cvs id and perform general cleanups on cvs/rcs/sccs ids. Most
[games.git] / gnu / lib / libdialog / TESTS / ftree1.c
1 /*
2  * ftree1.c
3  *
4  * small test-driver for new dialog functionality
5  *
6  * Copyright (c) 1998, Anatoly A. Orehovsky
7  *
8  * file ./ftree1.test with xterm widget tree from 
9  * direct editres(1) dump needed !!!
10  *
11  * $FreeBSD: src/gnu/lib/libdialog/TESTS/ftree1.c,v 1.2 2000/01/10 11:52:04 phantom Exp $
12  * $DragonFly: src/gnu/lib/libdialog/TESTS/ftree1.c,v 1.2 2003/06/17 04:25:44 dillon Exp $
13  */
14
15 #include <stdio.h>
16 #include <stdlib.h>
17 #include <dialog.h>
18
19 int
20 main(int argc, char **argv)
21 {
22         int retval;
23         unsigned char *tresult;
24
25         init_dialog();
26         retval = dialog_ftree("ftree1.test", '\t',
27                 "ftree dialog box example",
28                 "xterm widget tree from direct editres(1) dump", 
29                 -1, -1, 15,
30                             &tresult);
31
32         dialog_update();
33         
34         dialog_clear();
35         
36         end_dialog();
37
38         if (!retval)
39         {
40                 puts(tresult);
41                 free(tresult);
42         }
43         
44         exit(retval);
45 }