From 2f66e8678971ba0340a96d811ced405d75dbb114 Mon Sep 17 00:00:00 2001 From: "@syxhe" Date: Sun, 19 Jan 2025 17:58:45 -0600 Subject: Write example code for generating, storing, and verifying a password --- src/shared.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/shared.h') 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); // `reallocarray()` with error checking. Calls `error()` or `abort()` on error, depending on the value of `___VXGG___XALLOC_EXIT_ON_ERROR___` void* xreallocarray(void *ptr, size_t nmemb, size_t size); +// Read the entire contents of a file descriptor into a malloc()'ed buffer +int readwholebuffer(char **str, unsigned long int initsize, int fd); + #endif \ No newline at end of file -- cgit v1.2.3