Add some tips to C-Allocators #13

Merged
ryanlerch merged 1 commit from wip/dueno/cleanup into master 2020-10-13 10:17:07 +00:00
Contributor

This adds a couple of tips that can be used with the recent compilers and glibc, namely cleanup attribute and reallocarray.

This adds a couple of tips that can be used with the recent compilers and glibc, namely `cleanup` attribute and `reallocarray`.
Author
Contributor

rebased onto 46080eda4139d88947b9f3342eb27fd1d8e5bc7a

rebased onto 46080eda4139d88947b9f3342eb27fd1d8e5bc7a
Author
Contributor

3 new commits added

  • C-Allocators: Mention `realloc` behavior if size is zero
  • C-Allocators: Mention `cleanup` attribute
  • C-Allocators: Mention `reallocarray` for safe array allocation
**3 new commits added** * ``C-Allocators: Mention `realloc` behavior if size is zero`` * ``C-Allocators: Mention `cleanup` attribute`` * ``C-Allocators: Mention `reallocarray` for safe array allocation``
Author
Contributor

rebased onto e6baf3d2fb

rebased onto e6baf3d2fb33ff980611fcfd166842489615c8d4
Contributor

Pull-Request has been merged by huzaifas

Pull-Request has been merged by huzaifas
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Docs/defensive-coding-guide#13
No description provided.