Skip to content

Files

Latest commit

 

History

History
11 lines (6 loc) · 423 Bytes

memsetZeroBytes.md

File metadata and controls

11 lines (6 loc) · 423 Bytes

Pattern: Use of memset() to fill 0 bytes

Issue: -

Description

memset() called to fill 0 bytes. The second and third arguments might be inverted. The function memset ( void * ptr, int value, size_t num ) sets the first num bytes of the block of memory pointed by ptr to the specified value.

Further Reading