Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Saturday, October 17, 2026

Diff for libcfg+/src/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

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top