projects
/
fw
/
pdclib
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added a warning about missing test drivers.
[fw/pdclib]
/
functions
/
string
/
strchr.c
1
/* $Id$ */
2
3
/* Release $Name$ */
4
5
/* strchr( const char *, int )
6
7
This file is part of the Public Domain C Library (PDCLib).
8
Permission is granted to use, modify, and / or redistribute at will.
9
*/
10
11
#include <string.h>
12
13
char * strchr( const char * s, int c )
14
{
15
do
16
{
17
if ( *s == (char) c )
18
{
19
return (char *) s;
20
}
21
} while ( *s++ );
22
return NULL;
23
}
24
25
#warning Test driver missing.