-/* $NetBSD: main.cc,v 1.2 2003/12/28 17:53:48 thorpej Exp $ */
+/* $NetBSD: main.cc,v 1.4 2006/05/14 03:21:23 christos Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
* main.C: Main dots program
*/
#include "defs.h"
-RCSID("$NetBSD: main.cc,v 1.2 2003/12/28 17:53:48 thorpej Exp $")
+RCSID("$NetBSD: main.cc,v 1.4 2006/05/14 03:21:23 christos Exp $")
-#include <iostream>
+#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include "human.h"
#include "ttyscrn.h"
+GAMESCREEN *sc;
+
// Print the command line usage
static void usage(char* pname)
{
p++;
else
p = pname;
- std::cerr << "Usage: " << p
- << " [-w] [-p <c|h><c|h>] [-n <ngames>] [<ydim> [<xdim>]]" << std::endl;
+ (void)::fprintf(stderr,
+ "Usage: %s [-w] [-p <c|h><c|h>] [-n <ngames>] [<ydim> [<xdim>]]\n", p);
}
// Play a single game
}
}
- GAMESCREEN *sc = TTYSCRN::create(acs, ny, nx);
+ sc = TTYSCRN::create(acs, ny, nx);
if (sc == NULL)
::errx(1, "Dimensions too large for current screen.");