Lines Matching full:newstring
97 char *newString = static_cast<char *>( malloc( length + 1 ) );98 JSON_ASSERT_MESSAGE( newString != 0, "Failed to allocate string value buffer" );99 memcpy( newString, value, length );100 newString[length] = 0;101 return newString;