#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
+#include <sys/socket.h>
static int path[5];
static int j, k, scratchloc, pies;
void print_instructions()
{
- char ebuf[BUFSIZ];
-
PM("Welcome to `Hunt the Superhack'\n")
PM(" The superhack lives on the 9th floor of 45 Technology Square in");
}
- ammo:
if (finished == NOT)
{
(void) puts("You missed.");
}
}
-main(argc, argv)
-int argc;
-char *argv[];
+int main(int argc, char *argv[])
{
if (argc >= 2 && strcmp(argv[1], "-s") == 0)
srand(atoi(argv[2]));
break;
}
}
+ return 0;
}
/* superhack.c ends here */
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
+#include <time.h>
+#include <sys/socket.h>
/* 5 REM *** HUNT THE WUMPUS *** */
void print_instructions()
{
- char ebuf[BUFSIZ];
-
/* 375 REM *** INSTRUCTIONS *** */
/* 380 PRINT "WELCOME TO 'HUNT THE WUMPUS'" */
puts("WELCOME TO 'HUNT THE WUMPUS'");