We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The codebase makes a lot of use of the following pattern, where allocations are just asserted to have succeeded:
char* CLEANUP_STR parent_backing = strdup(val); assert(parent_backing != NULL);
I could totally have a strdup_checked or maybe strdup_c function (and equivalents for realloc and calloc and malloc etc etc) to not repeat myself.
strdup_checked
strdup_c
realloc
calloc
malloc
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The codebase makes a lot of use of the following pattern, where allocations are just asserted to have succeeded:
I could totally have a
strdup_checked
or maybestrdup_c
function (and equivalents forrealloc
andcalloc
andmalloc
etc etc) to not repeat myself.The text was updated successfully, but these errors were encountered: