Diff for libplaton/platon/str/strplus.c between version 1.12 and 1.13
| version 1.12, 2002/02/25 18:46:00 |
version 1.13, 2002/02/28 08:48:56 |
| Line 124 str_white_str(str, substr, size) |
|
| Line 124 str_white_str(str, substr, size) |
|
| int |
int |
| strcnt(str, c) |
strcnt(str, c) |
| const char *str; |
const char *str; |
| const char c; |
const int c; |
| { |
{ |
| register int i = 0; |
register int i = 0; |
| |
|
| if (str != NULL) |
if (str != NULL) |
| while (*str != '\0') |
while (*str != '\0') |
| if (*str++ == c) |
if (*str++ == (char) c) |
| i++; |
i++; |
| |
|
| return i; |
return i; |
Platon Group <platon@platon.org> http://platon.org/
|
|