memset_s

bearophile bearophileHUGS at lycos.com
Fri May 18 07:12:50 PDT 2012


A function+its semantics from C11 that seems good to have in D 
too:

>memset(): The standard guarantees that memset_s will over-write 
>the argument array, even if the optimizer thinks that those 
>stores are "useless," such as when over-writing a password 
>before leaving a function.<

From:
www.drdobbs.com/article/print?articleId=232901670

Bye,
bearophile


More information about the Digitalmars-d mailing list