mirror of
https://github.com/reactos/reactos.git
synced 2024-09-29 05:54:05 +00:00
f01dd17793
svn path=/trunk/; revision=1445
20 lines
333 B
C
20 lines
333 B
C
/* Copyright (C) 1996 DJ Delorie, see COPYING.DJ for details */
|
|
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
|
|
#include <msvcrt/string.h>
|
|
|
|
|
|
char *strchr(const char *s, int c)
|
|
{
|
|
char cc = c;
|
|
while (*s)
|
|
{
|
|
if (*s == cc)
|
|
return (char *)s;
|
|
s++;
|
|
}
|
|
if (cc == 0)
|
|
return (char *)s;
|
|
return 0;
|
|
}
|
|
|