[PR #360] Format specifier for size_t, calloc check #710

Open
opened 2026-01-29 15:14:43 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/TheAlgorithms/C/pull/360

State: closed
Merged: Yes


The correct format specifier for size_t is %zu. If C89 support is needed, %lu along with a cast to unsigned long will suffice.

Also added error checking for calloc.

**Original Pull Request:** https://github.com/TheAlgorithms/C/pull/360 **State:** closed **Merged:** Yes --- The correct format specifier for `size_t` is `%zu`. If C89 support is needed, `%lu` along with a cast to `unsigned long` will suffice. Also added error checking for calloc.
claunia added the pull-request label 2026-01-29 15:14:43 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#710