Skip to contentSkip to conversation

example in fmemopen.3

DISCUSSION walter harms 2 participants 2 messages May 28, 2010 – Jun 10, 2010 1 message not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
In reply to a message not in the archive

Hello Walter,

Quoted 7 lines · walter harms

 Hi,
the error message in the fmemopen example is confusing

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

Quoted 6 lines

          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

Signature · 7 lines
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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html