]> git.donarmstrong.com Git - fastq-tools.git/blob - src/fastq-common.h
a new and improved parser
[fastq-tools.git] / src / fastq-common.h
1 /*
2  * This file is part of fastq-tools.
3  *
4  * Copyright (c) 2011 by Daniel C. Jones <dcjones@cs.washington.edu>
5  *
6  * common :
7  * A few common functions, primarily for crashing whilst retaining our dignity.
8  *
9  */
10
11 #ifndef FASTQ_TOOLS_COMMON_H
12 #define FASTQ_TOOLS_COMMON_H
13
14 #include <stdio.h>
15
16 void or_die(int b, const char* msg);
17
18 void* malloc_or_die(size_t);
19 void* realloc_or_die(void*, size_t);
20 FILE* fopen_or_die(const char*, const char*);
21
22 #endif
23