Current Path : /usr/src/gnu/lib/libodialog/TESTS/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/src/gnu/lib/libodialog/TESTS/ftree1.c |
/* * ftree1.c * * small test-driver for new dialog functionality * * Copyright (c) 1998, Anatoly A. Orehovsky * * file ./ftree1.test with xterm widget tree from * direct editres(1) dump needed !!! */ #include <sys/cdefs.h> __FBSDID("$FreeBSD: release/9.1.0/gnu/lib/libodialog/TESTS/ftree1.c 114603 2003-05-03 21:31:08Z obrien $"); #include <stdio.h> #include <stdlib.h> #include <dialog.h> int main(int argc, char **argv) { int retval; unsigned char *tresult; init_dialog(); retval = dialog_ftree("ftree1.test", '\t', "ftree dialog box example", "xterm widget tree from direct editres(1) dump", -1, -1, 15, &tresult); dialog_update(); dialog_clear(); end_dialog(); if (!retval) { puts(tresult); free(tresult); } exit(retval); }