This repository has been archived on 2023-08-20. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
RescueBootCD/extra/syslinux-3.09/com32/lib/strchr.c

17 lines
177 B
C

/*
* strchr.c
*/
#include <string.h>
char *strchr(const char *s, int c)
{
while ( *s != (char)c ) {
if ( ! *s )
return NULL;
s++;
}
return (char *)s;
}