/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2006, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2010, Dave Pare, Jeff Bailey, Thomas Ruschak,
* Ken Stevens, Steve McClure
*
* This program is free software; you can redistribute it and/or modify
* ---
*
* natarg.c: Return countr # given country name or country #
- *
+ *
* Known contributors to this file:
- * Markus Armbruster, 2006
+ * Markus Armbruster, 2006-2009
*/
#include <config.h>
#include <ctype.h>
+#include <stdlib.h>
+#include "file.h"
+#include "match.h"
#include "misc.h"
#include "nat.h"
+#include "optlist.h"
#include "player.h"
-#include "file.h"
-#include "match.h"
#include "prototypes.h"
-#include "optlist.h"
/*
* Get nation argument.
struct natstr *np;
arg = getstarg(arg, prompt, buf);
- if (arg == 0 || *arg == 0)
+ if (!arg || !*arg)
return NULL;
if (isdigit(*arg))
n = atoi(arg);