I'm using getenv("TEMP")
, but I'm getting a warning telling me to use _dupenv_s
.
I can't find an example of _dupenv_s on the net.
The docs read:
errno_t _dupenv_s(
char **buffer,
size_t *numberOfElements,
const char *varname
);
But what buffer are they referring to? I only have varname. Wouldn't it be better to avoid using a buffer?