From: "James Colannino" <james@colannino.org>
To: linux-c-programming@vger.kernel.org
Subject: Confusing Prototype
Date: Sun, 11 Sep 2005 11:00:23 -0700 [thread overview]
Message-ID: <432470B7.7050609@colannino.org> (raw)
Hey everyone. I was looking at the prototype for fgets and noticed the
following:
char *fgets(char *s, int size, FILE *stream);
I'm confused because it says that it returns a pointer to a character,
but at the same time it stores a string at the address pointed to by
char *s, so why does it also need to return a pointer? I'm confused.
Thanks in advance.
James
next reply other threads:[~2005-09-11 18:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-11 18:00 James Colannino [this message]
2005-09-12 12:30 ` Confusing Prototype _z33
2005-09-12 16:36 ` Steve Graegert
2005-09-13 3:56 ` _z33
2005-09-13 18:34 ` Steve Graegert
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=432470B7.7050609@colannino.org \
--to=james@colannino.org \
--cc=linux-c-programming@vger.kernel.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.