Rev 5235 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5235 | Rev 5243 | ||
---|---|---|---|
Line 168... | Line 168... | ||
168 | 168 | ||
169 | return NULL; |
169 | return NULL; |
Line -... | Line 170... | ||
- | 170 | } |
|
Line -... | Line 171... | ||
- | 171 | ||
- | 172 | ||
- | 173 | char* strchr(char* s, int c) { |
|
- | 174 | ||
- | 175 | while (*s) { |
|
- | 176 | if (*s == (char) c) { |
|
- | 177 | return s; |
|
- | 178 | }; |
|
- | 179 | s++; |
|
- | 180 | }; |
|
- | 181 | return NULL; |
|
- | 182 | ||
- | 183 | }; |
|
- | 184 | ||
- | 185 | unsigned int strlen ( char * str ) { |
|
- | 186 | unsigned int len = 0; |
|
- | 187 | while ( *str ) { |
|
- | 188 | len++; |