Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
8687 | turbocat | 1 | /* strchr( const char *, int ) |
2 | |||
3 | This file is part of the Public Domain C Library (PDCLib). |
||
4 | Permission is granted to use, modify, and / or redistribute at will. |
||
5 | */ |
||
6 | |||
7 | #include |
||
8 | |||
9 | char * strchr( const char * s, int c ) |
||
10 | { |
||
11 | do |
||
12 | { |
||
13 | if ( *s == ( char ) c ) |
||
14 | { |
||
15 | return ( char * ) s; |
||
16 | } |
||
17 | } while ( *s++ ); |
||
18 | |||
19 | return NULL; |
||
20 | } |