| description |
Learn more about: _getmaxstdio |
| title |
_getmaxstdio |
| ms.date |
11/04/2016 |
| api_name |
|
| api_location |
msvcrt.dll |
msvcr80.dll |
msvcr90.dll |
msvcr100.dll |
msvcr100_clr0400.dll |
msvcr110.dll |
msvcr110_clr0400.dll |
msvcr120.dll |
msvcr120_clr0400.dll |
ucrtbase.dll |
api-ms-win-crt-stdio-l1-1-0.dll |
|
| api_type |
|
| topic_type |
|
| f1_keywords |
|
| helpviewer_keywords |
files [C++], number open |
_getmaxstdio function |
getmaxstdio function |
open files, getting number |
|
| ms.assetid |
700ca8ce-4a8c-4e00-9467-dfa9d6b831a0 |
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.
Remarks
Use _setmaxstdio to configure the number of simultaneously open files permitted at the stdio level.
| Routine |
Required header |
| _getmaxstdio |
<stdio.h> |
For more compatibility information, see Compatibility.
// 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());
}
Stream I/O