linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: xlp <xlp@emtel.net.co>
To: linux-c-programming@vger.kernel.org
Subject: Problem with "chars"
Date: Wed, 17 Jul 2002 04:08:16 -0500	[thread overview]
Message-ID: <20020717040816.A54117@nietzsche.metrotel.net.co> (raw)

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.



             reply	other threads:[~2002-07-17  9:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-17  9:08 xlp [this message]
2002-07-17 13:30 ` Problem with "chars" Jason L. Shiffer
2002-07-17 14:19   ` Elias Athanasopoulos

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=20020717040816.A54117@nietzsche.metrotel.net.co \
    --to=xlp@emtel.net.co \
    --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 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).