3 ms·
> The former does not in fact work everywhere, it only works on Windows. It's just some example code. Real code will probably try a number of variables. > Cal
by matheusmoreira 4y ago
> The former does not in fact work everywhere, it only works on Windows.
It's just some example code. Real code will probably try a number of variables.
> Calling getenv("APPDATA") is a perfectly fine way of fetching FOLDERID_RoamingAppData
Okay then. Top level post said you needed a Win32 function for this. If you can do that without those functions, I suppose it's easy enough to support.
> calling getpwuid if $HOME was undefined
$HOME is set by login and ssh to whatever is in the passwd database. Can it ever be undefined? Seems like something is seriously wrong if it is.