X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2Fcommon.h;h=5cc34fba0ca115f77c2f636594e2672f2501f579;hb=a7a328a691ab370ed7fd61c9c04af9def02395d5;hp=cdc89e8e9576331fedfdc142d36a79303ff2d99c;hpb=40ab4c0cde1bfee1616777995998b0cbc5ffc741;p=fastq-tools.git diff --git a/src/common.h b/src/common.h index cdc89e8..5cc34fb 100644 --- a/src/common.h +++ b/src/common.h @@ -13,11 +13,17 @@ #include +void print_version(FILE* f, const char* prog_name); + 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*); +/* 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