mirror of
https://github.com/TheAlgorithms/C.git
synced 2026-02-04 05:44:35 +00:00
[PR #360] Format specifier for size_t, calloc check #710
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/TheAlgorithms/C/pull/360
State: closed
Merged: Yes
The correct format specifier for
size_tis%zu. If C89 support is needed,%lualong with a cast tounsigned longwill suffice.Also added error checking for calloc.