diff options
Diffstat (limited to 'src/shared.h')
| -rw-r--r-- | src/shared.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shared.h b/src/shared.h index 620ec82..dce02fc 100644 --- a/src/shared.h +++ b/src/shared.h | |||
| @@ -17,4 +17,7 @@ void* xcalloc(size_t nmemb, size_t size); | |||
| 17 | // `reallocarray()` with error checking. Calls `error()` or `abort()` on error, depending on the value of `___VXGG___XALLOC_EXIT_ON_ERROR___` | 17 | // `reallocarray()` with error checking. Calls `error()` or `abort()` on error, depending on the value of `___VXGG___XALLOC_EXIT_ON_ERROR___` |
| 18 | void* xreallocarray(void *ptr, size_t nmemb, size_t size); | 18 | void* xreallocarray(void *ptr, size_t nmemb, size_t size); |
| 19 | 19 | ||
| 20 | // Read the entire contents of a file descriptor into a malloc()'ed buffer | ||
| 21 | int readwholebuffer(char **str, unsigned long int initsize, int fd); | ||
| 22 | |||
| 20 | #endif \ No newline at end of file | 23 | #endif \ No newline at end of file |
