2 * small test-driver for new dialog functionality
4 * Copyright (c) 1995, Jordan Hubbard
8 * This source code may be used, modified, copied, distributed, and
9 * sold, in both source and binary form provided that the above
10 * copyright and these terms are retained, verbatim, as the first
11 * lines of this file. Under no circumstances is the author
12 * responsible for the proper functioning of the software nor does
13 * the author assume any responsibility for damages incurred with
16 * $FreeBSD: src/gnu/lib/libdialog/TESTS/input1.c,v 1.5 2000/01/10 11:52:05 phantom Exp $
17 * $DragonFly: src/gnu/lib/libdialog/TESTS/input1.c,v 1.2 2003/06/17 04:25:44 dillon Exp $
27 /* Kick it off, James! */
29 main(int argc, char **argv)
32 unsigned char result[128];
36 strcpy(result, "not this!");
37 retval = dialog_inputbox("this is dialog_inputbox() in action, test #1",
38 "Enter something really profound below, please.",
41 fprintf(stderr, "returned value for dialog_inputbox was %d (%s)\n", retval, result);