Changeset 169 for trunk/src/helpers/stringh.c
- Timestamp:
- Jun 5, 2002, 12:24:01 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/stringh.c
r164 r169 113 113 *pulLength = ulLength; 114 114 115 return (NO_ERROR);115 return NO_ERROR; 116 116 } 117 117 … … 160 160 *pulLength = ulLength; 161 161 162 return (NO_ERROR);162 return NO_ERROR; 163 163 } 164 164 … … 1801 1801 || (shift == NULL) 1802 1802 ) 1803 return (NULL);1803 return NULL; 1804 1804 1805 1805 // Pattern must be smaller or equal in size to string 1806 1806 if (block_size < pattern_size) 1807 return (NULL); // Otherwise it's not found1807 return NULL; // Otherwise it's not found 1808 1808 1809 1809 if (pattern_size == 0) // Empty patterns match at start … … 1858 1858 } 1859 1859 } 1860 return (NULL); // Found nothing1860 return NULL; // Found nothing 1861 1861 } 1862 1862 … … 1902 1902 ASSERT (pattern); // fail gracefully if not debugging 1903 1903 if (string == NULL || pattern == NULL) 1904 return (NULL);1904 return NULL; 1905 1905 1906 1906 string_size = strlen (string); … … 1909 1909 // Pattern must be smaller or equal in size to string 1910 1910 if (string_size < pattern_size) 1911 return (NULL); // Otherwise it cannot be found1911 return NULL; // Otherwise it cannot be found 1912 1912 1913 1913 if (pattern_size == 0) // Empty string matches at start … … 1953 1953 } 1954 1954 } 1955 return (NULL); // Found nothing1956 } 1957 1955 return NULL; // Found nothing 1956 } 1957
Note:
See TracChangeset
for help on using the changeset viewer.