Skip to content

stp_string.dir@_utils.h.dir@_STP_String_realloc

Andy Zhang edited this page Aug 7, 2026 · 2 revisions

_STP_String_realloc

F+F+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  Function: _STP_String_realloc

  Summary:  Reallocates memory for string.

  Args:     char** p_str
              pointer to string to be resized.
            uint64_t new_str_len
              .

  Returns:  int
              1 if successful, 0 otherwise

  Modifies: p_str to increase in size to new_str_len + 1. May change pointer.
-----------------------------------------------------------------F-F

Clone this wiki locally