Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Activity for chqrlie‭

Type On... Excerpt Status Date
Comment Post #281519 You might mention the philosophy behind the `*_s` functions: make constraint violations fatal errors. Indeed they call a *handler* that may report the error to the user and exit the program. The problem is the default behavior if the handler ignores the problem: the destination string is set to the e...
(more)
almost 2 years ago
Edit Post #286194 Initial revision about 2 years ago
Answer A: Should I check if pointer parameters are null pointers?
Whether null pointer checking should be the caller's responsibility or the callee is debatable and probably a matter of opinion, local convention, sometimes logical choices but in all cases should be documented explicitly. Consider for example `memcpy()`: it is the caller's responsibility, the beh...
(more)
about 2 years ago
Comment Post #286191 I agree with you analysis. There is a problem with one of the examples: you should use `for(size_t i = 0; i < sizeof(array) / sizeof(*array); i++)` instead of `for(size_t i=0; i<n; i++)` as it would only be a coincidence if there were `n` entries in this array.
(more)
about 2 years ago