Lines Matching refs:str

320 char *ralloc_strdup(const void *ctx, const char *str) MALLOCLIKE;
325 * Like \c strndup, at most \p n characters are copied. If \p str is longer
328 char *ralloc_strndup(const void *ctx, const char *str, size_t n) MALLOCLIKE;
333 * This appends \p str to \p *dest, similar to \c strcat, using ralloc_resize
341 bool ralloc_strcat(char **dest, const char *str);
346 * This appends at most \p n bytes of \p str to \p *dest, using ralloc_resize
350 * The result will always be null-terminated; \p str does not need to be null
355 bool ralloc_strncat(char **dest, const char *str, size_t n);
360 * This appends \p n bytes of \p str to \p *dest, using ralloc_resize
372 ralloc_str_append(char **dest, const char *str,
398 * Overwrites the contents of *str starting at \p start with newly formatted
406 * \param str The string to be updated.
410 * \p str will be updated to the new pointer unless allocation fails.
415 bool ralloc_asprintf_rewrite_tail(char **str, size_t *start,
422 * Overwrites the contents of *str starting at \p start with newly formatted
430 * \param str The string to be updated.
435 * \p str will be updated to the new pointer unless allocation fails.
440 bool ralloc_vasprintf_rewrite_tail(char **str, size_t *start, const char *fmt,
448 * ralloc_asprintf_rewrite_tail(str, strlen(*str), fmt, ...)
455 * \p str will be updated to the new pointer unless allocation fails.
459 bool ralloc_asprintf_append (char **str, const char *fmt, ...)
467 * ralloc_vasprintf_rewrite_tail(str, strlen(*str), fmt, args)
474 * \p str will be updated to the new pointer unless allocation fails.
478 bool ralloc_vasprintf_append(char **str, const char *fmt, va_list args);
588 char *linear_strdup(void *parent, const char *str);
591 bool linear_asprintf_append(void *parent, char **str, const char *fmt, ...);
592 bool linear_vasprintf_append(void *parent, char **str, const char *fmt,
594 bool linear_asprintf_rewrite_tail(void *parent, char **str, size_t *start,
596 bool linear_vasprintf_rewrite_tail(void *parent, char **str, size_t *start,
598 bool linear_strcat(void *parent, char **dest, const char *str);