2 ms·
That won't work here. Here, the goal is to have 'cfree': zero'ing out memory and then freeing it.
by Someone 14y ago
That won't work here. Here, the goal is to have 'cfree': zero'ing out memory and then freeing it.
- sn 14y agoOK, shows me for skimming too much. There apparently used to be a cfree though it appears to be equivalent to free. I upvoted rwg's comment regarding CERT's Secure Coding wiki. memset_s is the correct solution given it is part of the C11 standard.