Skip to main content
Must have six X(s).
Source Link
WilliamKF
  • 43.6k
  • 71
  • 206
  • 308

Maybe this will work:

char tmpname[256]; ofstream f; sprintf (tmpname, "/tmp/tmpfileXXXX"tmpfileXXXXXX"); int fd = mkstemp(tmpname); ofstream f(tmpname); 

I haven't tried it, but you can check.

Maybe this will work:

char tmpname[256]; ofstream f; sprintf (tmpname, "/tmp/tmpfileXXXX"); int fd = mkstemp(tmpname); ofstream f(tmpname); 

I haven't tried it, but you can check.

Maybe this will work:

char tmpname[256]; ofstream f; sprintf (tmpname, "/tmp/tmpfileXXXXXX"); int fd = mkstemp(tmpname); ofstream f(tmpname); 

I haven't tried it, but you can check.

Source Link
nerdy
  • 21
  • 1

Maybe this will work:

char tmpname[256]; ofstream f; sprintf (tmpname, "/tmp/tmpfileXXXX"); int fd = mkstemp(tmpname); ofstream f(tmpname); 

I haven't tried it, but you can check.