aboutsummaryrefslogtreecommitdiff
path: root/include/stdio.h
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2013-02-27 19:50:46 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2013-02-27 19:50:46 +0000
commit9240031ac655f4e3cd4bcf840f2efc5222d6fdbc (patch)
tree816ebb18fe50626639453ff4d9e8077daa1693e2 /include/stdio.h
parent4b9b732ac0023efb10c6f3f61d804cfe1fb785e6 (diff)
downloadsrc-9240031ac655f4e3cd4bcf840f2efc5222d6fdbc.tar.gz
src-9240031ac655f4e3cd4bcf840f2efc5222d6fdbc.zip
Add an implementation of open_memstream() and open_wmemstream(). These
routines provide write-only stdio FILE objects that store their data in a dynamically allocated buffer. They are a string builder interface somewhat akin to a completely dynamic sbuf. Reviewed by: bde, jilles (earlier versions) MFC after: 1 month
Notes
Notes: svn path=/head/; revision=247411
Diffstat (limited to 'include/stdio.h')
-rw-r--r--include/stdio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/stdio.h b/include/stdio.h
index 4fc78b833abd..19b1e20f66be 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -346,6 +346,7 @@ char *tempnam(const char *, const char *);
FILE *fmemopen(void * __restrict, size_t, const char * __restrict);
ssize_t getdelim(char ** __restrict, size_t * __restrict, int,
FILE * __restrict);
+FILE *open_memstream(char **, size_t *);
int renameat(int, const char *, int, const char *);
int vdprintf(int, const char * __restrict, __va_list);