-/* $NetBSD: store.c,v 1.15 2009/08/12 08:04:05 dholland Exp $ */
+/* $NetBSD: store.c,v 1.16 2012/06/19 05:30:44 dholland Exp $ */
/*-
* Copyright (c) 1988 The Regents of the University of California.
#if 0
static char sccsid[] = "@(#)store.c 5.4 (Berkeley) 5/13/91";
#else
-__RCSID("$NetBSD: store.c,v 1.15 2009/08/12 08:04:05 dholland Exp $");
+__RCSID("$NetBSD: store.c,v 1.16 2012/06/19 05:30:44 dholland Exp $");
#endif
#endif /* not lint */
}
static void
-handsfull()
+handsfull(void)
{
lprcat("\nYou can't carry anything more!");
lflush();
}
static void
-outofstock()
+outofstock(void)
{
lprcat("\nSorry, but we are out of that item.");
lflush();
}
static void
-nogold()
+nogold(void)
{
lprcat("\nYou don't have enough gold to pay for that!");
lflush();
}
void
-dndstore()
+dndstore(void)
{
int i;
dnditm = 0;
to print the item list; used in dndstore() enter with the index into itm
*/
static void
-dnditem(i)
- int i;
+dnditem(int i)
{
int j, k;
if (i >= MAXITM)
}
void
-oschool()
+oschool(void)
{
int i;
long time_used;
int lasttime = 0; /* last time he was in bank */
void
-obank()
+obank(void)
{
banktitle(" Welcome to the First National Bank of Larn.");
}
void
-obank2()
+obank2(void)
{
banktitle("Welcome to the 5th level branch office of the First National Bank of Larn.");
}
* function to put interest on your bank account
*/
void
-ointerest()
+ointerest(void)
{
int i;
if (c[BANKACCOUNT] < 0)
* for each */
static long gemvalue[26] = {0}; /* the appraisal of the gems */
void
-obanksub()
+obanksub(void)
{
long amt;
int i, k;
function for the trading post
*/
static void
-otradhead()
+otradhead(void)
{
clear();
lprcat("Welcome to the Larn Trading Post. We buy items that explorers no longer find\n");
}
void
-otradepost()
+otradepost(void)
{
int i, j, value, isub, izarg;
dnditm = dndcount = 0;
* for the Larn Revenue Service
*/
void
-olrs()
+olrs(void)
{
int i, first;
long amt;