èªèº«ã®æ¨æºã¨ã©ã¼åºåãªã©ãæ¨ã¦ãæ¹æ³
FILE *fp = nullptr; auto backup = _dup(_fileno(stderr)); fopen_s(&fp, "nul", "w"); _dup2(_fileno(fp), _fileno(stderr)); //ããã®éãstderrã¸ã®åºåã¯ç¡ã¸ã¨æ¶ãã(ãã¡ã¤ã«ånulã¯ç¡ã¸ã®åºå) _dup2(backup, _fileno(stderr)); ::fclose(fp);