misc.cpp File Reference

#include "libc.h"
#include "types.h"
#include "misc.h"
#include "args.h"

Defines

#define _XOPEN_SOURCE

Functions

void fatal (const char *msg)
static void print_argv0 (void)
void fatalf (const char *fmt,...)
void fatalfr (const char *fmt,...)
void debugf (const char *fmt,...)
void debugff (const char *fmt,...)
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 *f)
int ckfseek (FILE *f, long i, int m)
void * ckrealloc (void *p, size_t size)
FILE * ckpopen (const char *name, const char *mode)
void ckpclose (FILE *fp)

Variables

static const char rcsid []
int psublast_debug = 0

Define Documentation

#define _XOPEN_SOURCE


Function Documentation

void* ckalloc ( size_t  amount  ) 

void* ckallocz ( size_t  amount  ) 

References ckalloc().

void* ckfree ( void *  p  ) 

int ckfseek ( FILE *  f,
long  i,
int  m 
)

References fatalfr().

long ckftell ( FILE *  f  ) 

References fatalfr().

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

References fatalfr().

void ckpclose ( FILE *  fp  ) 

References fatalfr().

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

References fatalfr().

void* ckrealloc ( void *  p,
size_t  size 
)

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().

static void print_argv0 ( void   )  [static]

References argv0.

Referenced by debugf(), debugff(), fatalf(), and fatalfr().

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


Variable Documentation

int psublast_debug = 0

Referenced by debugf(), and debugff().

const char rcsid[] [static]

Initial value:

"$Id: misc.cpp,v 1.1.1.1 2007-07-13 03:44:06 kzhou Exp $"


Generated on Wed Aug 10 11:57:06 2011 for Softwares from Orpara by  doxygen 1.5.6