1/*
2 * Copyright 2001, Travis Geiselbrecht. All rights reserved.
3 * Distributed under the terms of the NewOS License.
4 */
5
6
7#include <string.h>
8#include <strings.h>
9#include <sys/types.h>
10
11
12char*
13strchr(const char* s, int c)
14{
15	for (; *s != (char)c; ++s)
16		if (*s == '\0')
17			return NULL;
18	return (char*)s;
19}
20
21
22char*
23index(const char* s, int c)
24{
25	return strchr(s, c);
26}
27