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

Diff for libplaton/platon/str/strdyn.c between version 1.13 and 1.14

version 1.13, 2001/12/08 18:23:53 version 1.14, 2001/12/20 19:50:38
Line 465  int strdyn_compare_all(char **ar, char *
Line 465  int strdyn_compare_all(char **ar, char *
         return 0;          return 0;
 }  }
   
 char *strdyn_str(char *s, char **ar)  char *strdyn_str2(char *s, char **ar, int *idx)
 {  {
         register char *ret, *tmp_s;          register char *ret, *tmp_s;
         register int i;          register int i;
   
         for (ret = NULL, i = 0; ar[i] != NULL; i++)          for (ret = NULL, i = 0; ar[i] != NULL; i++)
                 if ((tmp_s = strstr(s, ar[i])) != NULL                  if ((tmp_s = strstr(s, ar[i])) != NULL
                                 && (ret == NULL || tmp_s < ret))                                  && (ret == NULL || tmp_s < ret)) {
                         ret = tmp_s;                          ret = tmp_s;
   
                           if (idx != NULL)
                                   *idx = i;
                   }
   
         return ret;          return ret;
 }  }
   

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

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