X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2Fcommon.h;h=5cc34fba0ca115f77c2f636594e2672f2501f579;hb=a7a328a691ab370ed7fd61c9c04af9def02395d5;hp=163755bd925d09b2aa4986ef27fd9dd6f80e10f7;hpb=e25e049490086a631d12bc56785f1a1845877541;p=fastq-tools.git diff --git a/src/common.h b/src/common.h index 163755b..5cc34fb 100644 --- a/src/common.h +++ b/src/common.h @@ -21,5 +21,9 @@ void* malloc_or_die(size_t); void* realloc_or_die(void*, size_t); FILE* fopen_or_die(const char*, const char*); +/* Open a file for reading, creating it if it doesn't exist, and complaining if + * it does. */ +FILE* open_without_clobber(const char* filename); + #endif