fatalerr.c

来自「NIST Handwriting OCR Testbed」· C语言 代码 · 共 23 行

C
23
字号
/*# proc: fatalerr - generic application error handler that prints a specified# proc:            message to stderr and exits with a status of 1.*/#include <stdio.h>void fatalerr(s1,s2,s3)char *s1, *s2, *s3;{(void) fflush(stdout);if (s2 == (char *) NULL)	(void) fprintf(stderr,"ERROR: %s\n",s1);else if (s3 == (char *) NULL)	(void) fprintf(stderr,"ERROR: %s: %s\n",s1,s2);else	(void) fprintf(stderr,"ERROR: %s: %s: %s\n",s1,s2,s3);(void) fflush(stderr);exit(1);}

⌨️ 快捷键说明

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