ignore_handler_s

提供: RAD Studio
移動先: 案内検索

stdlib.h:インデックス への移動



ヘッダー ファイル

stdlib.h

カテゴリ

実行時制約処理

プロトタイプ

void ignore_handler_s(const char * restrict msg, void * restrict ptr, errno_t error);

説明

ignore_handler_s 関数は、set_constraint_handler_s 関数のパラメータとして使用することができます。 実行時違反を無視し、ただ呼び出し元に戻ります。

ignore_handler_s を使用するのは、実行時制約違反を無視する場合です。

戻り値

ignore_handler_s には戻り値はありません。

#include <string.h>
#include <stdio.h>
#include <stdlib.h>
 
int main(void)
{
  char* string = NULL;
  set_constraint_handler_s(ignore_handler_s); 
  gets_s(string, 5); //nothing will be output to stdout.
  return 0;
}

関連項目