On Feb 28, 5:03 pm, "Victor Bazarov" <v.Abaza...@comAcast.netwrote:
Alberto Bignotti wrote:
How to get user temporany directory from c++ function?
example:
string myTempDir = getTempDir();
now myTempDir contains 'c:\tmp'
is there a portable function?
No, there is no portable function because there is no portable
notion of "user temporary directory". However, you could try
'getenv("TEMP")' or 'getenv("TMP")'. RTFM about it.
TMPDIR is what Posix recommends, I think.
--
James Kanze (GABI Software) email:ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34