How to create a temporary directory in C++?

后端 未结 6 1103
情歌与酒
情歌与酒 2020-11-30 11:52

I\'m writing a function in C++ which creates a temporary directory. Such function should be as most portable as possible, e.g. it should work under linux, mac and win32 envi

6条回答
  •  一生所求
    2020-11-30 11:59

    mkdtemp(char *template)

    http://www.cl.cam.ac.uk/cgi-bin/manpage?3+mkdtemp

    Creates a temporary directory.

提交回复
热议问题