]> git.donarmstrong.com Git - fastq-tools.git/blobdiff - src/fastq-common.h
a new and improved parser
[fastq-tools.git] / src / fastq-common.h
diff --git a/src/fastq-common.h b/src/fastq-common.h
new file mode 100644 (file)
index 0000000..cdc89e8
--- /dev/null
@@ -0,0 +1,23 @@
+/*
+ * This file is part of fastq-tools.
+ *
+ * Copyright (c) 2011 by Daniel C. Jones <dcjones@cs.washington.edu>
+ *
+ * common :
+ * A few common functions, primarily for crashing whilst retaining our dignity.
+ *
+ */
+
+#ifndef FASTQ_TOOLS_COMMON_H
+#define FASTQ_TOOLS_COMMON_H
+
+#include <stdio.h>
+
+void or_die(int b, const char* msg);
+
+void* malloc_or_die(size_t);
+void* realloc_or_die(void*, size_t);
+FILE* fopen_or_die(const char*, const char*);
+
+#endif
+