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.
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about CollectivesStack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
Explore Stack InternalMaybe 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.