summaryrefslogtreecommitdiff
path: root/include/readclose.h
diff options
context:
space:
mode:
authorJannis Hoffmann <jannis@fehcom.de>2024-07-09 13:02:45 +0200
committerJannis Hoffmann <jannis@fehcom.de>2024-07-09 13:02:45 +0200
commit96cf8dffe4f7b0b910f790066ae622dc429eb522 (patch)
treecc1343a0ac92bb4836cae2dd63a97fa045765e7f /include/readclose.h
initial commit of version 23fehQlibs-23
Diffstat (limited to 'include/readclose.h')
-rw-r--r--include/readclose.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/readclose.h b/include/readclose.h
new file mode 100644
index 0000000..a95f4f5
--- /dev/null
+++ b/include/readclose.h
@@ -0,0 +1,14 @@
+#ifndef READCLOSE_H
+#define READCLOSE_H
+
+#include "stralloc.h"
+#include "close.h"
+
+extern int readclose_append(int,stralloc *,unsigned int);
+extern int readclose(int,stralloc *,unsigned int);
+
+#define slurpclose readclose /* backwards compatibility */
+
+extern int openreadclose(const char *,stralloc *,unsigned int);
+
+#endif