/* this is used to determine if a character is safe to use in
something that may be put on a command line */
-#define issafe(c) (isalnum((c&0xff)) || strchr("-._",c))
+#define issafe(c) (isalnum((c&0xff)) || strchr_m("-._",c))
#endif
/* Dynamic codepage files defines. */
#define strerror(i) sys_errlist[i]
#endif
-#ifndef HAVE_STRCHR
-# define strchr index
-# define strrchr rindex
-#endif
-
#ifndef HAVE_ERRNO_DECL
extern int errno;
#endif
/* break up the line into parameter & value.
will need to eat a little whitespace possibly */
param = buf;
- if (!(ptr = strchr (buf, '=')))
+ if (!(ptr = strchr_m(buf, '=')))
continue;
val = ptr+1;
*ptr = '\0';
/* break up the line into parameter & value.
will need to eat a little whitespace possibly */
param = buf;
- if (!(ptr = strchr (buf, '=')))
+ if (!(ptr = strchr_m(buf, '=')))
continue;
val = ptr+1;
*ptr = '\0';