linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Confusing Prototype
@ 2005-09-11 18:00 James Colannino
  2005-09-12 12:30 ` _z33
  0 siblings, 1 reply; 5+ messages in thread
From: James Colannino @ 2005-09-11 18:00 UTC (permalink / raw)
  To: linux-c-programming

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-09-13 18:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-11 18:00 Confusing Prototype James Colannino
2005-09-12 12:30 ` _z33
2005-09-12 16:36   ` Steve Graegert
2005-09-13  3:56     ` _z33
2005-09-13 18:34       ` Steve Graegert

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).