Files
2024-02-13 13:37:55 -06:00

16 lines
314 B
C

/*
* 'Burn' a dynamically allocated string, in the sense of destroying
* it beyond recovery: overwrite it with zeroes and then free it.
*/
#include "defs.h"
#include "misc.h"
void burnstr(char *string)
{
if (string) {
smemclr(string, strlen(string));
sfree(string);
}
}