linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Problem with "chars"
@ 2002-07-17  9:08 xlp
  2002-07-17 13:30 ` Jason L. Shiffer
  0 siblings, 1 reply; 3+ messages in thread
From: xlp @ 2002-07-17  9:08 UTC (permalink / raw)
  To: linux-c-programming

Hi C people, first of all, I'd like to thank you this mailing list and kernel.org project to give us a place where C programmers feel free to ask their questions and the support is excellent.
I dont understand what's the way I should handle 'chars' on C. 
I need to code a C function that returns a char, I want to do this:
char foo();
main(){
	char bar*;
	bar=foo();
}
How should i declare the 'char' inside foo()?
How should i 'return' the char inside foo()?
How can i understand "chars" and pointers to chars?, I have a C books, but I dont get it, because ALL THE EXAMPLES are with chars like char foo[20], that is the easy way!, I want to handle char without a specific length!.

bye.



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

end of thread, other threads:[~2002-07-17 14:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-17  9:08 Problem with "chars" xlp
2002-07-17 13:30 ` Jason L. Shiffer
2002-07-17 14:19   ` Elias Athanasopoulos

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