delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/19/11:30:44

From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: passing arg 1 of 'free' ....
Date: Fri, 19 Jun 1998 08:03:15 -0700
Organization: Alcyone Systems
Lines: 17
Message-ID: <358A7DB3.DA20318@alcyone.com>
References: <358A5A9F DOT E57B1F07 AT pac DOT nl> <Pine DOT OSF DOT 3 DOT 95 DOT 980619164139 DOT 5179G-100000 AT ruunf0 DOT phys DOT uu DOT nl>
NNTP-Posting-Host: charmaine.alcyone.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Elliott Oti wrote:

> const char *myptr; // means I am not going to alter myptr => myptr = 
>                    // const
> 
> free(myptr); // means please release the memory pointed to by myptr
>              // and make myptr = NULL;

It doesn't nullify the pointer, but yes, this is his problem.

-- 
         Erik Max Francis, &tSftDotIotE / mailto:max AT alcyone DOT com
                       Alcyone Systems / http://www.alcyone.com/max/
  San Jose, California, United States / icbm:+37.20.07/-121.53.38
                                     \
           She glanced at her watch / . . . It was 9:23.
                                   / James Clavell

- Raw text -


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