Diff for libplaton/platon/str/strplus.c between version 1.9 and 1.10
| version 1.9, 2001/12/20 19:50:38 |
version 1.10, 2002/01/21 19:34:57 |
| Line 48 char *stristr(const char *s1, const char |
|
| Line 48 char *stristr(const char *s1, const char |
|
| |
|
| #endif |
#endif |
| |
|
| #if 0 /* Funny, isn't it? */ |
/* str_white_str() by Rastislav 'Crasher' Barlik <rbarlik@yahoo.com> */ |
| |
|
| char *str_white_str(char *s, int *size) |
|
| { |
|
| register int elems; |
|
| char *ptr; |
|
| |
|
| for (elems = 1, ptr = s; *ptr != '\0'; ) { |
|
| while (isspace(*ptr)) |
|
| ptr++; |
|
| |
|
| if (*ptr == '\0') |
|
| break; |
|
| |
|
| while (! isspace(*ptr)) |
|
| ptr++; |
|
| |
|
| elems++; |
|
| } |
|
| |
|
| *size = elems; |
|
| |
|
| return s; |
|
| |
|
| } |
|
| |
|
| #endif |
|
| |
|
| char *str_white_str(char *str, char *substr, int *size) |
char *str_white_str(char *str, char *substr, int *size) |
| { |
{ |
| #if 0 |
#if 0 |
| *size = strlen(substr); |
/* |
| |
* This is fastfix code substitution for str_white_str() function, |
| |
* because new wersion from 'Crasher' was not fully tested yet. |
| |
*/ |
| |
|
| |
*size = strlen(substr); |
| return strstr(str, substr); |
return strstr(str, substr); |
| |
|
| #else |
#else |
Platon Group <platon@platon.org> http://platon.org/
|
|