Searched refs:new_string (Results 1 – 1 of 1) sorted by relevance
34 char* new_string = static_cast<char*>( in osi_strdup() local36 if (!new_string) return NULL; in osi_strdup()38 memcpy(new_string, str, size); in osi_strdup()39 return new_string; in osi_strdup()50 char* new_string = static_cast<char*>( in osi_strndup() local52 if (!new_string) return NULL; in osi_strndup()54 memcpy(new_string, str, size); in osi_strndup()55 new_string[size] = '\0'; in osi_strndup()56 return new_string; in osi_strndup()