perror.c

来自「一个类似windows」· C语言 代码 · 共 24 行

C
24
字号
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
#include <precomp.h>

#ifdef perror
#undef perror
void perror(const char *s);
#endif

/*
 * @implemented
 */
void perror(const char *s)
{
  fprintf(stderr, "%s: %s\n", s, _strerror(NULL));
}

/*
 * @implemented
 */
void _wperror(const wchar_t *s)
{
  fwprintf(stderr, L"%s: %S\n", s, _strerror(NULL));
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?