From: 孙建刚 <sunjiangangok-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: The error of "getpwuid"
Date: Wed, 25 Nov 2009 13:44:52 +0800 [thread overview]
Message-ID: <bdf46e580911242144s733020bamd6816a7853887ccb@mail.gmail.com> (raw)
I have found an spelling error of "getpwuid" which is in the section 3
of man-pages.
The error is in the last third line of EXAMPLE in "getpwuid",
the primary is
printf("Name: %s; UID: %ld0, pwd.pw_gecos, (long) pwd.pw_uid);
but it is wrong.The right is
printf("Name: %s; UID: %ld", pwd.pw_gecos, (long) pwd.pw_uid);
should change "0" to quotation mark("), not "0".
--
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
next reply other threads:[~2009-11-25 5:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-25 5:44 孙建刚 [this message]
[not found] ` <bdf46e580911242144s733020bamd6816a7853887ccb-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-11-27 5:52 ` The error of "getpwuid" 孙建刚
[not found] ` <bdf46e580911262152u27a3e96bx3bde63668afaa240-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-12-03 15:20 ` 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=bdf46e580911242144s733020bamd6816a7853887ccb@mail.gmail.com \
--to=sunjiangangok-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@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 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).