Chameleon

Chameleon Svn Source Tree

Root/branches/xZenu/src/modules/klibc/strchr.c

Source at commit 1308 created 12 years 8 months ago.
By meklort, Add a few placeholders for file io
1/*
2 * strchr.c
3 */
4
5#include <string.h>
6
7char *strchr(const char *s, int c)
8{
9while (*s != (char)c) {
10if (!*s)
11return NULL;
12s++;
13}
14
15return (char *)s;
16}
17
18//__ALIAS(char *, index, (const char *, int), strchr)
19

Archive Download this file

Revision: 1308