(index, rindex): Obsolete BSDisms; remove. Use standard strchr() and

strrchr() instead.
(setbuffer): Obsolete BSDism, unused; remove.
This commit is contained in:
Markus Armbruster 2004-01-08 18:15:13 +00:00
parent 4ae9c417b3
commit 64afd7747b
16 changed files with 29 additions and 227 deletions

View file

@ -32,6 +32,7 @@
*/
#include <ctype.h>
#include <string.h>
#include "misc.h"
#include "player.h"
#include "xy.h"
@ -63,7 +64,7 @@ sarg_type(s_char *ptr)
return NS_DIST;
if (c == '*')
return NS_ALL;
if (c == '#' || index(ptr, ',') != 0)
if (c == '#' || strchr(ptr, ',') != 0)
return NS_AREA;
if (isdigit(c))
return NS_LIST;