What is Nostr?
graywolf /
npub1nef…uq7k
2024-01-28 19:07:39
in reply to nevent1q…yyy3

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?
Author Public Key
npub1nefrrwuefssnkj6mc8gjkqfxp0z2sgutw7eclqw3h5ns6qm7g7js58uq7k