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/yesno.c,v 1.5.2.1 2000/12/15 05:54:37 jkh Exp $
17 * $DragonFly: src/gnu/lib/libdialog/TESTS/yesno.c,v 1.2 2003/06/17 04:25:44 dillon Exp $
27 /* Kick it off, James! */
29 main(int argc
, char **argv
)
35 rval1
= dialog_yesno("This is dialog_yesno() in action",
36 "Have you stopped deliberately putting bugs into your code?", -1, -1);
38 rval2
= dialog_noyes("This is dialog_noyes() in action",
39 "Have you stopped beating your wife?", -1, -1);
42 fprintf(stderr
, "returned value for dialog_yesno was %d\n", rval1
);
43 fprintf(stderr
, "returned value for dialog_noyes was %d\n", rval2
);