C:memset
lastmod 2026-11-10created 2019-02-192 edits
memset is a function in the C standard library's string.h that fills each byte of a memory block with a specified value. It takes the destination pointer, the value to fill, and the number of bytes as arguments, and returns the destination pointer. It is often used to initialize structures or arrays to 0; note that the value is written per byte, not per int.