platform/shared/ruby/missing/strchr.c in rhodes-5.5.18 vs platform/shared/ruby/missing/strchr.c in rhodes-6.0.11

- old
+ new

@@ -1,6 +1,10 @@ /* public domain rewrite of strchr(3) and strrchr(3) */ +#include "ruby/missing.h" + +size_t strlen(const char*); + char * strchr(const char *s, int c) { if (c == 0) return (char *)s + strlen(s); while (*s) {