Article View: comp.std.c
Article #1751Re: [m]allocation question
From: Dan Bernstein
Date: Wed, 26 Sep 1990 03:44
Date: Wed, 26 Sep 1990 03:44
8 lines
687 bytes
687 bytes
In article <UaxqffS00Vtq8akksB@andrew.cmu.edu> ghoti+@andrew.cmu.edu (Adam Stoller) writes: > t = (struct node *) malloc(sizeof *t); The argument of sizeof isn't evaluated. Only its type matters. This is correct code, and perhaps easier to understand than the other obvious version. ---Dan
Technical Details
Message-ID:
<11666:Sep2603:44:3190@kramden.acf.nyu.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!cmcl2!kramden.acf.nyu.edu!brnstndReferences:
<UaxqffS00Vtq8akksB@andrew.cmu.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!cmcl2!kramden.acf.nyu.edu!brnstnd From: brnstnd@kramden.acf.nyu.edu (Dan Bernstein) Newsgroups: comp.std.c Subject: Re: [m]allocation question Message-ID: <11666:Sep2603:44:3190@kramden.acf.nyu.edu> Date: 26 Sep 90 03:44:31 GMT References: <UaxqffS00Vtq8akksB@andrew.cmu.edu> Organization: IR Lines: 8