public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* example in fmemopen.3
@ 2010-05-28 14:31 walter harms
       [not found] ` <4BFFD3CF.2070608-fPG8STNUNVg@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: walter harms @ 2010-05-28 14:31 UTC (permalink / raw)
  To: Michael Kerrisk; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

 Hi,
the error message in the fmemopen example is confusing

          in = fmemopen(argv[1], strlen(argv[1]), "r");
           if (in == NULL)
               handle_error("fmemopen");

           out = open_memstream(&ptr, &size);
           if (out == NULL)
               handle_error("fmemopen");
			^^^^^^^^^^^^^^^^^

perhaps 	handle_error("open_memstream"); is intended ?

re,
 wh
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: example in fmemopen.3
       [not found] ` <4BFFD3CF.2070608-fPG8STNUNVg@public.gmane.org>
@ 2010-06-10  4:21   ` Michael Kerrisk
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk @ 2010-06-10  4:21 UTC (permalink / raw)
  To: wharms-fPG8STNUNVg; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

Hello Walter,

On Fri, May 28, 2010 at 4:31 PM, walter harms <wharms-fPG8STNUNVg@public.gmane.org> wrote:
>  Hi,
> the error message in the fmemopen example is confusing
>
>          in = fmemopen(argv[1], strlen(argv[1]), "r");
>           if (in == NULL)
>               handle_error("fmemopen");
>
>           out = open_memstream(&ptr, &size);
>           if (out == NULL)
>               handle_error("fmemopen");
>                        ^^^^^^^^^^^^^^^^^
>
> perhaps         handle_error("open_memstream"); is intended ?

Agreed. Fixed for man-pages-3.25.

Thanks!

Michael


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface" http://blog.man7.org/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-06-10  4:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-28 14:31 example in fmemopen.3 walter harms
     [not found] ` <4BFFD3CF.2070608-fPG8STNUNVg@public.gmane.org>
2010-06-10  4:21   ` Michael Kerrisk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox