fmemopen.3: Bug fix in example program

Reported-by: Walter Harms <wharms@bfs.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2010-06-10 03:15:12 +02:00
parent bb464ec15e
commit 84112433e2
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
.\" Distributed under the GPL.
.\" 2008-12-04, Petr Baudis <pasky@suse.cz>: Document open_wmemstream()
.\"
.TH FMEMOPEN 3 2009-09-15 "GNU" "Linux Programmer's Manual"
.TH FMEMOPEN 3 2010-06-10 "GNU" "Linux Programmer's Manual"
.SH NAME
fmemopen, open_memstream, open_wmemstream \- open memory as stream
.SH SYNOPSIS
@ -232,7 +232,7 @@ main(int argc, char *argv[])
out = open_memstream(&ptr, &size);
if (out == NULL)
handle_error("fmemopen");
handle_error("open_memstream");
for (;;) {
s = fscanf(in, "%d", &v);