summaryrefslogtreecommitdiff
path: root/drain.h
blob: 7ad6b9ca53aa608fa3eee4ececb9d6d76b0c7e2d (plain)
1
2
3
4
5
6
#pragma once
#include <stdio.h>

// IO helper. Read the entirety of a FILE* content into a freshly alloced array.
// Returns NULL on error.
char *drain(FILE *fp);