Searched refs:new_str (Results 1 – 3 of 3) sorted by relevance
38 char *new_str; in backslash() local42 if ((new_str = strdup(str)) == NULL) in backslash()50 new_str[i++] = '\\'; in backslash()58 new_str[i++] = '\\'; in backslash()59 new_str[i++] = *str++; in backslash()63 new_str[i++] = '\b'; in backslash()68 new_str[i++] = '\f'; in backslash()73 new_str[i++] = '\r'; in backslash()78 new_str[i++] = '\n'; in backslash()83 new_str[i++] = ' '; in backslash()[all …]
158 char *new_str; in realloc_strncat() local166 new_str = malloc(old_len + len + 1); in realloc_strncat()167 if (new_str == NULL) in realloc_strncat()170 memcpy(new_str, *str, old_len); in realloc_strncat()171 memcpy(new_str + old_len, append, len); in realloc_strncat()172 new_str[old_len + len] = '\0'; in realloc_strncat()174 *str = new_str; in realloc_strncat()180 char *new_str; in realloc_strcat() local188 new_str = malloc(old_len + strlen(append) + 1); in realloc_strcat()189 if (new_str == NULL) in realloc_strcat()[all …]
470 char * new_str = realloc(*ppath_out, len + append_len + 1); in _krb5_expand_path_tokens() local472 if (new_str == NULL) { in _krb5_expand_path_tokens()482 *ppath_out = new_str; in _krb5_expand_path_tokens()