Lines Matching refs:str
265 int replace_word(char **str, int pos, int len, const char *substr) in replace_word() argument
271 str_len = strlen(*str); in replace_word()
281 strncpy(new_str, *str, pos); in replace_word()
283 strcat(new_str, *str + pos + len); in replace_word()
286 free(*str); in replace_word()
287 *str = new_str; in replace_word()
327 char *StrDup(const char *str) in StrDup() argument
331 if (NULL == (cp = strdup(str ? str : ""))) in StrDup()
349 char *StrNDup(const char *str, int len) in StrNDup() argument
354 if (str && len) in StrNDup()
355 (void)strncpy(cp, str, len); in StrNDup()