Skip to content

Latest commit

 

History

History
66 lines (47 loc) · 1.53 KB

getmaxstdio.md

File metadata and controls

66 lines (47 loc) · 1.53 KB
description title ms.date api_name api_location api_type topic_type f1_keywords helpviewer_keywords ms.assetid
Learn more about: _getmaxstdio
_getmaxstdio
11/04/2016
_getmaxstdio
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
DLLExport
apiref
_getmaxstdio
getmaxstdio
files [C++], number open
_getmaxstdio function
getmaxstdio function
open files, getting number
700ca8ce-4a8c-4e00-9467-dfa9d6b831a0

_getmaxstdio

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

Syntax

int _getmaxstdio( void );

Return value

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.

Requirements

Routine Required header
_getmaxstdio <stdio.h>

For more compatibility information, see Compatibility.

Example

// 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

See also

Stream I/O