_getmaxstdio

ストリーム入出力のレベルで許可されている、同時に開かれたファイルの数を返します。

構文

int _getmaxstdio( void );

戻り値

stdio のレベルで現在許可されている、同時に開けるファイル数を表す数値を返します。

解説

レベルで許可される同時に開くファイルの数をstdio構成するために使用_setmaxstdioします。

必要条件

ルーチンによって返される値 必須ヘッダー
_getmaxstdio <stdio.h>

互換性の詳細については、「 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());
}
512
2048

関連項目

ストリーム入出力