-/* string.c\r
- * Copyright (C) 1995,1996 Robert de Bath <rdebath@cix.compulink.co.uk>\r
- * This file is part of the Linux-8086 C library and is distributed\r
- * under the GNU Library General Public License.\r
- */ \r
- \r
-#include <string.h>\r
-\r
-/* FIXME: asm version ?? */ \r
-/********************** Function strchr ************************************/ \r
-char *strchr(const char *s, int c) \r
+/* string.c
+ * Copyright (C) 1995,1996 Robert de Bath <rdebath@cix.compulink.co.uk>
+ * This file is part of the Linux-8086 C library and is distributed
+ * under the GNU Library General Public License.
+ */
+
+#include <string.h>
+
+/* FIXME: asm version ?? */
+/********************** Function strchr ************************************/
+char *strchr(const char *s, int c)
{
register char ch;
- \r
+
for (;;) {
if ((ch = *s) == c)
return s;
-/* string.c\r
- * Copyright (C) 1995,1996 Robert de Bath <rdebath@cix.compulink.co.uk>\r
- * This file is part of the Linux-8086 C library and is distributed\r
- * under the GNU Library General Public License.\r
- */ \r
- \r
-#include <string.h>\r
- \r
-/********************** Function strrchr ************************************/ \r
-char *strrchr(const char *s, int c) \r
+/* string.c
+ * Copyright (C) 1995,1996 Robert de Bath <rdebath@cix.compulink.co.uk>
+ * This file is part of the Linux-8086 C library and is distributed
+ * under the GNU Library General Public License.
+ */
+
+#include <string.h>
+
+/********************** Function strrchr ************************************/
+char *strrchr(const char *s, int c)
{
register const char *p = s + strlen(s);
- \r
- /* For null it's just like strlen */ \r
+
+ /* For null it's just like strlen */
if (c == '\0')
return p;
while (p != s) {