Movatterモバイル変換


[0]ホーム

URL:


memzero_explicit
Prev String Manipulation Next

Name

memzero_explicit — Fill a region of memory (e.g. sensitive keying data) with 0s.

Synopsis

voidmemzero_explicit(void *s,
 size_tcount);
 

Arguments

void * s

Pointer to the start of the area.

size_t count

The size of the area.

Note

usually usingmemset is just fine (!), but in cases where clearing out _local_ data at the end of a scope is necessary,memzero_explicit should be used instead in order to prevent the compiler from optimising away zeroing.

memzero_explicit doesn't need an arch-specific version as it just invokes the one ofmemset implicitly.


Prev Up Next
memset Home memcpy

[8]ページ先頭

©2009-2025 Movatter.jp