Equivalent for Java's System.getProperty("java.io.tmpdir") in C ?
- by B_
As the title says, the java.io.tmpdir property in Java is really nice, and I can't find an equivalent for C. I'm writing for Windows and in Visual Studio. I don't want to just use something like C:\Temp because in later versions of windows the appropriate directory could be something like C:\Users\[UserName]\AppData\Local\Temp and a way to retrieve this would be much easier. I want a directory and not just a temp file because I'm downloading and executing a file from the internet.
As a side note, if anyone can give me tips about how to better google for C stuff it would be much appreciated :)