How do I find the \'temp\' directory in Linux? I am writing a platform neutral C++ function that returns the temp directory. In Mac and Windows, there is an API that returns
In standard c, you could try: P_tmpdir