Root/
Source at commit 1313 created 12 years 9 months ago. By meklort, Add TIXML_USE_STL to TinyXML | |
---|---|
1 | /*␊ |
2 | * strchr.c␊ |
3 | */␊ |
4 | ␊ |
5 | #include <string.h>␊ |
6 | ␊ |
7 | char *strchr(const char *s, int c)␊ |
8 | {␊ |
9 | ␉while (*s != (char)c) {␊ |
10 | ␉␉if (!*s)␊ |
11 | ␉␉␉return NULL;␊ |
12 | ␉␉s++;␊ |
13 | ␉}␊ |
14 | ␊ |
15 | ␉return (char *)s;␊ |
16 | }␊ |
17 | ␊ |
18 | //__ALIAS(char *, index, (const char *, int), strchr)␊ |
19 |