C Standard Library

C <stdio.h> - L_tmpnam constant



The C <stdio.h> 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 <stdio.h> 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 <stdio.h>
 
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 <stdio.h> Library