]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - gnu/lib/libodialog/TESTS/ftree1.c
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / gnu / lib / libodialog / 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
12 #include <sys/cdefs.h>
13 __FBSDID("$FreeBSD$");
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 }