Chameleon

Chameleon Svn Source Tree

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

Source at commit 1292 created 8 years 11 months ago.
By meklort, Add additional functions to klibc. Remove duplicates from libsa
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: 1292