delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/03/24/14:28:36

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
From: "Christian Jullien" <Eligis AT wanadoo DOT fr>
To: <gnu-win32 AT cygnus DOT com>
Subject: RE: cfree
Date: Wed, 24 Mar 1999 20:28:27 +0100
Message-ID: <NCBBKPDFPJAMCKEMOANNGEFDCCAA.Eligis@wanadoo.fr>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2212 (4.71.2419.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.0810.800

At 03:15 PM 3/24/99 +0100, Levon Saldamli wrote:
>I have trouble linking with some files that use cfree. Does anybody
>recognize this problem? It is in the include file stdlib.h but linking
>fails.

cfree is (in BSD style) genrally written as a macro

#define	cfree( x )		(free(x),x=NULL)

That way, if you try to dereference this free pointer you'll get a core
dump.

Eligis: Christian Jullien (OOP consultant)
10, RUE REJANE - 95120 ERMONT (France)
Eligis AT wanadoo DOT fr - +33 130.72.98.20


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019