C++ Standard Library C++ STL Library

C++ <cstdio> - L_tmpnam constant



The C++ <cstdio> L_tmpnam is a macro constant that expands to an integral expression corresponding to the size needed for an array of char elements to hold the longest file name string to be possible to generate using tmpnam() function.

In the <cstdio> header file, it is defined as follows:

#define L_tmpnam /* implementation defined */             

Example:

The example below shows the value of L_tmpnam constant on a given implementation.

#include <cstdio>
 
int main (){
  //displaying the value of L_tmpnam
  printf("L_tmpnam = %d\n", L_tmpnam);
 
  return 0;
}

One of the possible output of the above code could be:

L_tmpnam = 20

❮ C++ <cstdio> Library