2 * This file is part of fastq-tools.
4 * Copyright (c) 2011 by Daniel C. Jones <dcjones@cs.washington.edu>
7 * A few common functions, primarily for crashing whilst retaining our dignity.
11 #ifndef FASTQ_TOOLS_COMMON_H
12 #define FASTQ_TOOLS_COMMON_H
16 void print_version(FILE* f, const char* prog_name);
18 void or_die(int b, const char* msg);
20 void* malloc_or_die(size_t);
21 void* realloc_or_die(void*, size_t);
22 FILE* fopen_or_die(const char*, const char*);