_getmaxstdio

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at _getmaxstdio.

Returns the number of simultaneously open files permitted at the stream I/O level.

int _getmaxstdio( void );  

Returns a number that represents the number of simultaneously open files currently permitted at the stdio level.

Use _setmaxstdio to configure the number of simultaneously open files permitted at the stdio level.

RoutineRequired header
_getmaxstdio<stdio.h>

For more compatibility information, see Compatibility in the Introduction.

// crt_setmaxstdio.c  
// The program retrieves the maximum number  
// of open files and prints the results  
// to the console.  
  
#include <stdio.h>  
  
int main()  
{  
   printf( "%d\n", _getmaxstdio());  
  
   _setmaxstdio(2048);  
  
   printf( "%d\n", _getmaxstdio());  
}  

512  
2048  

Not applicable. To call the standard C function, use PInvoke. For more information, see Platform Invoke Examples.

Stream I/O

Show: