1 /* public domain rewrite of strchr(3) and strrchr(3) */
3 #include "ruby/missing.h"
5 size_t strlen(const char*);
8 strchr(const char *s
, int c
)
10 if (c
== 0) return (char *)s
+ strlen(s
);
20 strrchr(const char *s
, int c
)
24 if (c
== 0) return (char *)s
+ strlen(s
);