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

📄 sqerror.c

📁 hmmer源程序
💻 C
字号:
/***************************************************************** * HMMER - Biological sequence analysis with profile HMMs * Copyright (C) 1992-1999 Washington University School of Medicine * All Rights Reserved *  *     This source code is distributed under the terms of the *     GNU General Public License. See the files COPYING and LICENSE *     for details. *****************************************************************//* sqerror.c *  * error handling for the squid library * RCS $Id: sqerror.c,v 1.4 1999/07/15 22:28:31 eddy Exp $ */				/* a global errno equivalent */int squid_errno;#include <stdio.h>#include <stdlib.h>#include <stdarg.h>#ifdef MEMDEBUG#include "dbmalloc.h"#endif/* Function: Die() *  * Purpose:  Print an error message and die. The arguments *           are formatted exactly like arguments to printf(). *            * Return:   None. Exits the program. */          /* VARARGS0 */voidDie(char *format, ...){  va_list  argp;				/* format the error mesg */  fprintf(stderr, "\nFATAL: ");  va_start(argp, format);  vfprintf(stderr, format, argp);  va_end(argp);  fprintf(stderr, "\n");  fflush(stderr);				/* exit  */  exit(1);}/* Function: Warn() *  * Purpose:  Print an error message and return. The arguments *           are formatted exactly like arguments to printf(). *            * Return:   (void) */          /* VARARGS0 */voidWarn(char *format, ...){  va_list  argp;				/* format the error mesg */  fprintf(stderr, "WARNING: ");  va_start(argp, format);  vfprintf(stderr, format, argp);  va_end(argp);  fprintf(stderr, "\n");  fflush(stderr);}/* Function: Panic() *  * Purpose:  Die from a lethal error that's not my problem, *           but instead a failure of a StdC/POSIX call that *           shouldn't fail. Call perror() to get the *           errno flag, then die. *            *           Usually called by the PANIC macro which adds *           the __FILE__ and __LINE__ information; see *           structs.h. *            *           Inspired by code in Donald Lewine's book, _POSIX  *           Programmer's Guide_. */voidPanic(char *file, int line){  (void) fprintf(stderr, "\nPANIC [%s line %d] ", file, line);  (void) perror("Unusual error");  exit(EXIT_FAILURE);}

⌨️ 快捷键说明

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