freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- 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
-
[freetds] malloc and style,
ZIGLIO, Frediano, VF-IT, 01/30/2006
- Re: [freetds] malloc and style, James K. Lowden, 01/30/2006
Archive powered by MHonArc 2.6.24.