All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alain <alainb06-GANU6spQydw@public.gmane.org>
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Typo in scanf
Date: Fri, 18 Nov 2011 08:43:22 +0100	[thread overview]
Message-ID: <4EC60C9A.2030201@free.fr> (raw)

/** 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

             reply	other threads:[~2011-11-18  7:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-18  7:43 Alain [this message]
     [not found] <4EC609E9.80707@free.fr>
     [not found] ` <4EC609E9.80707-GANU6spQydw@public.gmane.org>
2012-02-02 19:04   ` Typo in scanf Michael Kerrisk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EC60C9A.2030201@free.fr \
    --to=alainb06-ganu6spqydw@public.gmane.org \
    --cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.