-/* $NetBSD: io.c,v 1.11 2007/12/15 19:44:42 perry Exp $ */
+/* $NetBSD: io.c,v 1.12 2009/05/25 23:08:45 dholland Exp $ */
/*
* io.c - input/output routines for Phantasia
#include <curses.h>
void
-getstring(cp, mx)
- char *cp;
- int mx;
+getstring(char *cp, int mx)
{
char *inptr; /* pointer into string for next string */
int x, y; /* original x, y coordinates on screen */
}
void
-more(where)
- int where;
+more(int where)
{
mvaddstr(where, 0, "-- more --");
getanswer(" ", FALSE);
}
double
-infloat()
+infloat(void)
{
double result; /* return value */
}
int
-inputoption()
+inputoption(void)
{
++Player.p_age; /* increase age */
}
void
-interrupt()
+interrupt(void)
{
char line[81]; /* a place to store data already on screen */
int loop; /* counter */
}
int
-getanswer(choices, def)
- const char *choices;
- phbool def;
+getanswer(const char *choices, phbool def)
{
int ch; /* input */
volatile int loop; /* counter */
}
void
-catchalarm(dummy)
- int dummy __unused;
+catchalarm(int dummy __unused)
{
longjmp(Timeoenv, 1);
}