-/* $NetBSD: query.c,v 1.3 1995/04/22 10:09:05 cgd Exp $ */
+/* $NetBSD: query.c,v 1.4 1997/10/12 14:10:01 lukem Exp $ */
/*
* Copyright (c) 1980, 1993
* SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)query.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$NetBSD: query.c,v 1.3 1995/04/22 10:09:05 cgd Exp $";
+__RCSID("$NetBSD: query.c,v 1.4 1997/10/12 14:10:01 lukem Exp $");
#endif
#endif /* not lint */
* query:
* Ask a question and get a yes or no answer. Default is "no".
*/
+int
query(prompt)
-char *prompt;
+ char *prompt;
{
- register int c, retval;
- register int y, x;
+ int c, retval;
+ int y, x;
getyx(stdscr, y, x);
move(Y_PROMPT, X_PROMPT);