Thread (1 message) 1 message, 1 author, 2012-02-02
  • (off-list ancestor, not in this archive)
  • Re: Typo in scanf · Michael Kerrisk <hidden> · 2012-02-02

Re: Typo in scanf

From: Michael Kerrisk <hidden>
Date: 2012-02-02 19:04:28

On Fri, Nov 18, 2011 at 8:31 PM, Alain [off-list ref] wrote:
There is a typo in the example given under "Note" section.

Sorry I saw just now that there is a very easy way to report that by mail...
I already files the report (and details such as version used = Ubuntu
10.04.3) here :

https://bugs.launchpad.net/ubuntu/+source/man-db/+bug/891854

Typo is:

fprintf(stderr, "No matching characters\n"):

Should be instead

fprintf(stderr, "No matching characters\n");


( ';' semicolon terminates an C instruction, and not ':' colon )

I also made a suggestion (see bug report), to change the example using the
'm' modifier as 'a' seems rather dangerous and obsolete.
This second part is just a suggestion (subject to discussion) whereas the
typo is really there and makes compiling without errors impossible.

Best regards.
Alain BENEDETTI
Thanks Alain. Fixed!

Cheers,

Michael


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/
--
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help