/* Define if you have the strspn function. */
#undef HAVE_STRSPN
+/* Define if you have the strtok function. */
+#undef HAVE_STRTOK
+
/* Define if you have the strtol function. */
#undef HAVE_STRTOL
fi
-for ac_func in socket strcspn strspn strtol
+for ac_func in socket strcspn strspn strtol strtok
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:1057: checking for $ac_func" >&5
AC_TYPE_SIZE_T
dnl Checks for library functions.
-AC_CHECK_FUNCS(socket strcspn strspn strtol)
+AC_CHECK_FUNCS(socket strcspn strspn strtol strtok)
AC_OUTPUT(Makefile)
E bool isnt_fighting(char *u);
E bool player_fight(char *u);
E bool master_fight(char *u);
+
+#ifndef HAVE_STRTOK
E char *strtok(char *str, const char *delim);
+#endif
+
E char *spaces(int len, char *seperator);
E void display_monster(char *u);
E void display_players(char *u);
int load_gs_dbase();
// String functions
-#undef strtok
+#ifndef HAVE_STRTOK
char *strtok(char *str, const char *delim);
+#endif
+
int stricmp(const char *s1, const char *s2);
int strnicmp(const char *s1, const char *s2, size_t len);
// String Functions
return 1;
}
+#ifndef HAVE_STRTOK
char *strtok(char *str, const char *delim)
{
static char *current = NULL;
*current++ = 0;
return ret;
}
+#endif
void do_list(char *u)
{