Equivalent for Java's System.getProperty("java.io.tmpdir") in C ?

Posted by B_ on Stack Overflow See other posts from Stack Overflow or by B_
Published on 2010-04-16T08:59:47Z Indexed on 2010/04/16 9:03 UTC
Read the original article Hit count: 195

Filed under:
|
|
|

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 :)

© Stack Overflow or respective owner

Related posts about java

Related posts about c