misc.h File Reference

Go to the source code of this file.

Defines

#define NORETURN
#define CLEN(s)   (sizeof((s))-1)
#define ZFREE(p)   /*CONSTCOND*/do{free(p);(p)=0;}while(0)
#define RCSID(id)   static const char rcsid[] = id
#define MAX(x, y)   ((x) > (y) ? (x) : (y))
#define MIN(x, y)   ((x) < (y) ? (x) : (y))
#define ICEIL(x, y)   ((((x)-1)/(y))+1)

Functions

void fatal (const char *msg) NORETURN
void fatalf (const char *fmt,...) NORETURN
void fatalfr (const char *fmt,...) NORETURN
void debugf (const char *fmt,...)
void debugff (const char *fmt,...)
FILE * ckpopen (const char *name, const char *mode)
void ckpclose (FILE *)
FILE * ckopen (const char *name, const char *mode)
void * ckalloc (size_t amount)
void * ckallocz (size_t amount)
void * ckfree (void *p)
bool same_string (const char *s, const char *t)
char * copy_string (const char *s)
char * copy_substring (const char *s, int n)
long ckftell (FILE *)
int ckfseek (FILE *, long, int)
void * ckrealloc (void *, size_t)

Variables

int psublast_debug


Define Documentation

#define CLEN (  )     (sizeof((s))-1)

#define ICEIL ( x,
 )     ((((x)-1)/(y))+1)

#define MAX ( x,
 )     ((x) > (y) ? (x) : (y))

#define MIN ( x,
 )     ((x) < (y) ? (x) : (y))

#define NORETURN

#define RCSID ( id   )     static const char rcsid[] = id

#define ZFREE (  )     /*CONSTCOND*/do{free(p);(p)=0;}while(0)


Function Documentation

void* ckalloc ( size_t  amount  ) 

void* ckallocz ( size_t  amount  ) 

References ckalloc().

void* ckfree ( void *  p  ) 

int ckfseek ( FILE *  ,
long  ,
int   
)

References fatalfr().

long ckftell ( FILE *   ) 

References fatalfr().

FILE* ckopen ( const char *  name,
const char *  mode 
)

References fatalfr().

void ckpclose ( FILE *   ) 

References fatalfr().

FILE* ckpopen ( const char *  name,
const char *  mode 
)

References fatalfr().

void* ckrealloc ( void *  ,
size_t   
)

References fatal().

char* copy_string ( const char *  s  ) 

References ckalloc().

char* copy_substring ( const char *  s,
int  n 
)

References ckalloc().

void debugf ( const char *  fmt,
  ... 
)

References print_argv0(), and psublast_debug.

void debugff ( const char *  fmt,
  ... 
)

References print_argv0(), and psublast_debug.

void fatal ( const char *  msg  ) 

void fatalf ( const char *  fmt,
  ... 
)

References print_argv0().

Referenced by ck_argc(), ckalloc(), ckargs(), fatal(), and is_DNA().

void fatalfr ( const char *  fmt,
  ... 
)

References print_argv0().

Referenced by ckfseek(), ckftell(), ckopen(), ckpclose(), and ckpopen().

bool same_string ( const char *  s,
const char *  t 
)


Variable Documentation

Referenced by debugf(), and debugff().


Generated on Wed Oct 14 21:49:20 2009 for Softwares from Orpara by  doxygen 1.5.6