linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Typo in scanf
@ 2011-11-18  7:43 Alain
  0 siblings, 0 replies; 2+ messages in thread
From: Alain @ 2011-11-18  7:43 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

/** Sorry, sent again as mimetype plain text (1st mail rejected) **/

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

--
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
[parent not found: <4EC609E9.80707@free.fr>]

end of thread, other threads:[~2012-02-02 19:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-18  7:43 Typo in scanf Alain
     [not found] <4EC609E9.80707@free.fr>
     [not found] ` <4EC609E9.80707-GANU6spQydw@public.gmane.org>
2012-02-02 19:04   ` Michael Kerrisk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).