Searched refs:new_string (Results 1 – 1 of 1) sorted by relevance
33 char* new_string = static_cast<char*>( in osi_strdup() local35 if (!new_string) return NULL; in osi_strdup()37 memcpy(new_string, str, size); in osi_strdup()38 return new_string; in osi_strdup()49 char* new_string = static_cast<char*>( in osi_strndup() local51 if (!new_string) return NULL; in osi_strndup()53 memcpy(new_string, str, size); in osi_strndup()54 new_string[size] = '\0'; in osi_strndup()55 return new_string; in osi_strndup()