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