From: Elias Athanasopoulos <eathan@otenet.gr>
To: "Jason L. Shiffer" <jshiffer@zerotao.org>
Cc: linux-c-programming@vger.kernel.org, xlp <xlp@emtel.net.co>
Subject: Re: Problem with "chars"
Date: Wed, 17 Jul 2002 17:19:02 +0300 [thread overview]
Message-ID: <20020717171902.I1163@neutrino.particles.org> (raw)
In-Reply-To: <20020717133041.GA13442@zerotao.org>; from jshiffer@zerotao.org on Wed, Jul 17, 2002 at 09:30:41AM -0400
On Wed, Jul 17, 2002 at 09:30:41AM -0400, Jason L. Shiffer wrote:
> On Wed, Jul 17, 2002 at 04:08:16AM -0500, xlp wrote:
> > 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();
> > }
>
> Firstly if you are just going to return a char ie. some value between
> -128 & 127, then the above definition is incorrect:
> char bar*; defines a char pointer most commenly known as a string;
This defines nothing. It produces a syntax error.
Both, you mean "char *bar;".
Elias
--
http://gnewtellium.sourceforge.net MP3 is not a crime.
prev parent reply other threads:[~2002-07-17 14:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
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=20020717171902.I1163@neutrino.particles.org \
--to=eathan@otenet.gr \
--cc=jshiffer@zerotao.org \
--cc=linux-c-programming@vger.kernel.org \
--cc=xlp@emtel.net.co \
/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).