summaryrefslogtreecommitdiffstats
path: root/src/bfstd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bfstd.h')
-rw-r--r--src/bfstd.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/bfstd.h b/src/bfstd.h
index e4fd1f1..ee4cf16 100644
--- a/src/bfstd.h
+++ b/src/bfstd.h
@@ -106,6 +106,18 @@ char *xgetdelim(FILE *file, char delim);
// #include <stdlib.h>
/**
+ * Portable version of aligned_alloc()/posix_memalign().
+ *
+ * @param align
+ * The allocation's alignment.
+ * @param size
+ * The allocation's size.
+ * @return
+ * The allocation, or NULL on failure.
+ */
+void *xmemalign(size_t align, size_t size);
+
+/**
* Process a yes/no prompt.
*
* @return 1 for yes, 0 for no, and -1 for unknown.