summaryrefslogtreecommitdiffstats
path: root/private/crt32/string/mips/strchrt.c
diff options
context:
space:
mode:
Diffstat (limited to 'private/crt32/string/mips/strchrt.c')
-rw-r--r--private/crt32/string/mips/strchrt.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/private/crt32/string/mips/strchrt.c b/private/crt32/string/mips/strchrt.c
new file mode 100644
index 000000000..1da4e1d0d
--- /dev/null
+++ b/private/crt32/string/mips/strchrt.c
@@ -0,0 +1,20 @@
+#include <stdio.h>
+#include <string.h>
+#include <limits.h>
+
+void main( int argc, char **argv )
+ {
+ int c;
+ unsigned char *pstr;
+ unsigned char string[100];
+
+ strcpy(string, "ABCDEFGHIJKLMNOPQRST");
+ for (c = 'a'; c <= UCHAR_MAX; c++)
+ {
+ string[9] = c;
+ pstr = strchr( string, c);
+ if (!pstr)
+ printf("Fail - Could not find %d in %s\n", c, string);
+ }
+ return;
+ }