/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2009, 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
getstarg(char *input, char *prompt, char *buf)
{
*buf = '\0';
- if (input == 0 || *input == 0) {
- if (getstring(prompt, buf) == 0)
- return 0;
+ if (!input || !*input) {
+ if (!getstring(prompt, buf))
+ return NULL;
} else {
strcpy(buf, input);
}