Changeset 238 for trunk/src/helpers/stringh.c
- Timestamp:
- Dec 24, 2002, 8:44:35 AM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/stringh.c
r196 r238 220 220 *@@ strhdup: 221 221 * like strdup, but this one doesn't crash if pszSource 222 * is NULL, but returns NULL also. In addition, this 222 * is NULL. Instead, this returns NULL if pcszSource is 223 * NULL or points to a null byte. In addition, this 223 224 * can report the length of the string (V0.9.16). 224 225 * … … 407 408 { 408 409 if (pcsz) // && *pcsz) // V0.9.18 (2002-03-27) [umoeller] 409 return (strlen(pcsz) + 1);410 return strlen(pcsz) + 1; 410 411 411 412 return 0; … … 1028 1029 *pulOffset = prc - pcszSearchIn; 1029 1030 1030 return ( (PSZ)prc);1031 return (PSZ)prc; 1031 1032 } 1032 1033 … … 1855 1856 1856 1857 if (pattern_size == 0) // Empty patterns match at start 1857 return ( (void *)block);1858 return (void*)block; 1858 1859 1859 1860 // Build the shift table unless we're continuing a previous search … … 1901 1902 // If we found a match, return the start address 1902 1903 if (match_size >= pattern_size) 1903 return ( (void*)(match_base));1904 return (void*)match_base; 1904 1905 1905 1906 } … … 1959 1960 1960 1961 if (pattern_size == 0) // Empty string matches at start 1961 return (char *)string;1962 return (char*)string; 1962 1963 1963 1964 // Build the shift table … … 1997 1998 // If we found a match, return the start address 1998 1999 if (match_size >= pattern_size) 1999 return ( (char *)(match_base));2000 return (char*)match_base; 2000 2001 } 2001 2002 }
Note:
See TracChangeset
for help on using the changeset viewer.