linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Elias Athanasopoulos <eathan@otenet.gr>
To: xlp <xlp@emtel.net.co>
Cc: linux-c-programming@vger.kernel.org, jason@txt.com
Subject: Re: [jason@txt.com: Re: Problem with "chars"]
Date: Wed, 17 Jul 2002 20:55:59 +0300	[thread overview]
Message-ID: <20020717205559.J1163@neutrino.particles.org> (raw)
In-Reply-To: <20020717093316.A56041@nietzsche.metrotel.net.co>; from xlp@emtel.net.co on Wed, Jul 17, 2002 at 09:33:16AM -0500

On Wed, Jul 17, 2002 at 09:33:16AM -0500, xlp wrote:
> char *foo()
> {
> 	char *retbar;
> 	retbar = (char *)malloc(20);

Although it's tend to be an aesthitic issue, it is a *good* habit to not
cast malloc().  

Elias

--
http://gnewtellium.sourceforge.net			MP3 is not a crime.	

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

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-17 14:33 [jason@txt.com: Re: Problem with "chars"] xlp
2002-07-17 17:55 ` Elias Athanasopoulos [this message]
2002-07-17 17:55   ` Jason P. Winters
2002-07-17 18:07     ` Glynn Clements
2002-07-17 18:24       ` Jason P. Winters
2002-07-17 18:54       ` Glynn Clements
2002-07-17 18:16     ` Elias Athanasopoulos
2002-07-17 19:30     ` Marius Nita
2002-07-18 14:43       ` Earl R. Lapus
2002-07-24 19:56       ` Mike Castle
2002-07-24 21:05         ` Jason P. Winters
2002-07-24 22:38           ` Glynn Clements
  -- strict thread matches above, loose matches on Subject: below --
2002-07-18  7:11 Alvarez Alberto-AALVARB1
2002-07-18  9:25 ` Elias Athanasopoulos
2002-07-18  9:18   ` Marius Nita

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=20020717205559.J1163@neutrino.particles.org \
    --to=eathan@otenet.gr \
    --cc=jason@txt.com \
    --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).