Skip to Content.
Sympa Menu

freetds - [freetds] malloc and style

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "ZIGLIO, Frediano, VF-IT" <Frediano.Ziglio AT vodafone.com>
  • To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
  • Subject: [freetds] malloc and style
  • Date: Mon, 30 Jan 2006 10:15:30 +0100

I saw that our code contains many lines like

p = malloc(size);
if (!p)
...
memset(p, 0, size);

Perhaps code like

p = calloc(1, size);
if (!p)
...

is shorter and more readable??

freddy77




Archive powered by MHonArc 2.6.24.

Top of Page