source:
bootcd/isolinux/syslinux-6.03/dos/strchr.c
@
e16e8f2
Last change on this file since e16e8f2 was e16e8f2, checked in by , 3 years ago | |
---|---|
|
|
File size: 192 bytes |
Rev | Line | |
---|---|---|
[e16e8f2] | 1 | /* |
2 | * strchr.c | |
3 | */ | |
4 | ||
5 | #include <string.h> | |
6 | #include "mystuff.h" | |
7 | ||
8 | char *strchr(const char *s, int c) | |
9 | { | |
10 | while (*s != (char)c) { | |
11 | if (!*s) | |
12 | return NULL; | |
13 | s++; | |
14 | } | |
15 | ||
16 | return (char *)s; | |
17 | } |
Note: See TracBrowser
for help on using the repository browser.