⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jsperror.c

📁 b tree how to operate on b tr
💻 C
字号:
/*JS***********************************************************************    Program : JSPERROR*    Language: ANSI-C*    Author  : Joerg Schoen*    Purpose : Similar to "perror", but recognizes library errors as well**************************************************************************/#ifndef lintstatic const char rcsid[] = "$Id$";#endif/*********     INCLUDES                                         *********/#include <stdio.h>#include <errno.h>#include <jssubs.h>#define Prototype extern/*********     PROTOTYPES                                       *********/Prototype void           jsperror(const char *s);/*JS**********************************************************************   The difficult question is: which error code has precedence? Currently*    this is the library.*************************************************************************/void jsperror(const char *s)/************************************************************************/{  if(JSErrNo)    fprintf(stderr,"%s: %s\n",s,jsStrError(JSErrNo));  else    /*  Leave handling of errno == 0 to perror :)  */    perror(s);  return;}

⌨️ 快捷键说明

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