_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
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho