summaryrefslogtreecommitdiffstats
path: root/lib/libforms/examples/example.c
diff options
context:
space:
mode:
authorpaul <paul@FreeBSD.org>1995-01-25 08:26:17 +0000
committerpaul <paul@FreeBSD.org>1995-01-25 08:26:17 +0000
commit3d46fa5ebf1b6cea582cd88264abe1242c94b559 (patch)
tree09bff76a4dc4962d081aec36809cf964bdfcb7cd /lib/libforms/examples/example.c
parent3b2b35819c2c40c73aaf5b14631ab7bc50e15a92 (diff)
downloadFreeBSD-src-3d46fa5ebf1b6cea582cd88264abe1242c94b559.zip
FreeBSD-src-3d46fa5ebf1b6cea582cd88264abe1242c94b559.tar.gz
Truncate any default inputs to the input width.
Update the example so it works properly.
Diffstat (limited to 'lib/libforms/examples/example.c')
-rw-r--r--lib/libforms/examples/example.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libforms/examples/example.c b/lib/libforms/examples/example.c
index f9ce588..120dc20 100644
--- a/lib/libforms/examples/example.c
+++ b/lib/libforms/examples/example.c
@@ -56,9 +56,9 @@ main()
if (res == F_DONE) {
printf("You're entries were:\n\n");
- printf("%s\n",example_fields[3].field.input->input);
- printf("%s\n",example_fields[5].field.input->input);
- printf("%s\n",example_fields[7].field.menu->options[example_fields[7].field.menu->selected]);
+ printf("%s\n",input1.input);
+ printf("%s\n",input2.input);
+ printf("%s\n",menu1.options[example_fields[7].field.menu->selected]);
} else if (res == F_CANCEL)
printf("You cancelled the form\n");
OpenPOWER on IntegriCloud