summaryrefslogtreecommitdiff
path: root/dviware/beebe/src/strchr.h
diff options
context:
space:
mode:
Diffstat (limited to 'dviware/beebe/src/strchr.h')
-rw-r--r--dviware/beebe/src/strchr.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/dviware/beebe/src/strchr.h b/dviware/beebe/src/strchr.h
new file mode 100644
index 0000000000..f340e3aaea
--- /dev/null
+++ b/dviware/beebe/src/strchr.h
@@ -0,0 +1,35 @@
+/* -*-C-*- strchr.h */
+/*-->strchr*/
+/**********************************************************************/
+/******************************* strchr *******************************/
+/**********************************************************************/
+
+#ifndef KCC_20
+#define KCC_20 0
+#endif
+
+#ifndef IBM_PC_MICROSOFT
+#define IBM_PC_MICROSOFT 0
+#endif
+
+#ifndef OS_VAXVMS
+#define OS_VAXVMS 0
+#endif
+
+
+#if (KCC_20 | IBM_PC_MICROSOFT | OS_VAXVMS)
+#else
+char*
+strchr(s,c) /* return address of c in s[], or (char*)NULL if not found. */
+register char *s;/* c may be NUL; terminator of s[] is included in search. */
+register char c;
+{
+ while ((*s) && ((*s) != c))
+ ++s;
+
+ if ((*s) == c)
+ return (s);
+ else
+ return ((char*)NULL);
+}
+#endif