Search notes:

C++ Standard Library: tmpnam

#include <cstdio>
#include <iostream>

int main() {

  char* tmp_file_name;

  tmp_file_name = tmpnam(nullptr);

  std::cout << "tmp_file_name: " << tmp_file_name << std::endl;

}
Github repository about-cpp-standard-library, path: /cstdio/tmpnam.cpp
Note: g++ gives a compiler warning: the use of tmpnam' is dangerous, better use mkstemp'.

See also

C++ Standard Library

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758193861, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/C-C-plus-plus/CPP-Standard-Library/cstdio/tmpnam(52): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78