Path: utzoo!censor!geac!torsqnt!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!mcsun!ukc!kl-cs!pc From: pc@cs.keele.ac.uk (Phil Cornes) Newsgroups: comp.lang.c Subject: Re: FREE Message-ID: <1296@kl-cs.UUCP> Date: 1 Mar 90 13:18:35 GMT References: <2714@stl.stc.co.uk> Organization: University of Keele, England Lines: 17 From article <2714@stl.stc.co.uk>, by dsr@stl.stc.co.uk (David Riches): > In most cases only the pointer to the space is known but will the > following free up all the space :- > #define NE_ARR_FREE(x) { free((char *) sizeof(x)); x = 0; } > No this just won't work - you can only pass a pointer returned by malloc() into a call to free().... Phil Cornes I just called to say ..... -----------* JANET: cdtpc@uk.ac.stafpol.cr83 Phone: +44 (0)785 53511 x6058 Smail: Staffordshire Polytechnic, Computing Department, Blackheath Lane, STAFFORD, ST18 0AD, ENGLAND.