Which strings ought I to free in C on my own, using free()
¹?
My state of knowledge:
char a[256];
: nochar *a = "abcdefg";
: nochar *a = malloc(15L);
: yes- a string returned by
getenv()
: no - strings returned by Windows functions²: ???
¹ or LocalFree()
/GlobalFree()
/VirtualFree()
² in particular by GetCommandLineW()