source: bootcd/isolinux/syslinux-6.03/com32/lib/strchr.c @ e16e8f2

Last change on this file since e16e8f2 was e16e8f2, checked in by Edwin Eefting <edwin@datux.nl>, 3 years ago

bootstuff

  • Property mode set to 100644
File size: 171 bytes
RevLine 
[e16e8f2]1/*
2 * strchr.c
3 */
4
5#include <string.h>
6
7char *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}
Note: See TracBrowser for help on using the repository browser.