project_files/hwc/rtl/system.c
changeset 14159 0aeea29ef890
parent 13920 7173b702e8db
child 14168 5c6f947c342c
equal deleted inserted replaced
14158:ddc77c3b1823 14159:0aeea29ef890
   273 
   273 
   274     if (str.len == 0) {
   274     if (str.len == 0) {
   275         return 0;
   275         return 0;
   276     }
   276     }
   277 
   277 
       
   278     FIX_STRINGA(str);
       
   279 
   278     p = strchr(str.s + 1, c);
   280     p = strchr(str.s + 1, c);
   279 
   281 
   280     if (p == NULL) {
   282     if (p == NULL) {
   281         return 0;
   283         return 0;
   282     }
   284     }
   296     if (substr.len == 0) {
   298     if (substr.len == 0) {
   297         return 0;
   299         return 0;
   298     }
   300     }
   299 
   301 
   300     FIX_STRING(substr);
   302     FIX_STRING(substr);
       
   303     FIX_STRINGA(str);
       
   304 
   301     str.s[str.len] = 0;
   305     str.s[str.len] = 0;
   302 
   306 
   303     p = strstr(str.s + 1, substr.str);
   307     p = strstr(str.s + 1, substr.str);
   304 
   308 
   305     if (p == NULL) {
   309     if (p == NULL) {