_getmaxstdio
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

_getmaxstdio

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

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 Compatibility
_getmaxstdio <stdio.h> Win 98, Win Me, Win NT, Win 2000, Win XP

For additional compatibility information, see Compatibility in the Introduction.

Libraries

All versions of the C run-time libraries.

Example

// crt_setmaxstdio.c
#include <stdio.h>
int main() {
   printf("%d\n",_getmaxstdio());
   _setmaxstdio(2048);
   printf("%d\n",_getmaxstdio());
}

Output

512
2048

See Also

Stream I/O | Run-Time Routines and .NET Framework Equivalents

Show:
© 2016 Microsoft