graywolf on Nostr: npub1fzx00…wt6h3 I appreciate the help, but I am afraid I do not follow :/ You ...
npub1fzx00c36ny4whyuhg4ykx6987wxp885fmwmc784n27qcu6pavwzs3wt6h3 (npub1fzx…t6h3) I appreciate the help, but I am afraid I do not follow :/ You listed 3 cases, but then you are saying it can be just two of them. I don't follow why. The realloc *can* fail, and, when that happens, the buf should still be valid pointer no? Since the *outp = buf is guarded by the check for the fail (realloc returned NULL), I do not understand why gcc complains...
Maybe to directly ask the question at the core of my not-understanding: If realloc fails (returns NULL), the buffer it operated on is still valid and can be used, yes?
Maybe to directly ask the question at the core of my not-understanding: If realloc fails (returns NULL), the buffer it operated on is still valid and can be used, yes?