www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/22/20:46:03

From: firewind <firewind AT metroid DOT ml DOT org>
Newsgroups: comp.lang.c,comp.os.msdos.djgpp
Subject: Re: Casting void pointers
Date: Mon, 22 Jun 1998 11:21:36 -0600
Organization: The World's Usenet -- http://www.Supernews.com
Lines: 13
Message-ID: <Pine.LNX.3.95.980622112024.159C-100000@metroid.ml.org>
References: <6mkaos$k7o AT dfw-ixnews6 DOT ix DOT netcom DOT com>
NNTP-Posting-Host: 209.194.74.93
Mime-Version: 1.0
In-Reply-To: <6mkaos$k7o@dfw-ixnews6.ix.netcom.com>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On Sun, 21 Jun 1998, Todd Rowan wrote:

> How do you explicity cast a void pointer to a function pointer? Or do you
> even need to cast void pointers manually?

That depends. A void pointer must be cast or reassigned prior to dereferencing
it, but in assignments, no cast is required.

-- 
(initiator of the campaign for grumpiness where grumpiness is due in c.l.c)

-Please-! Do -not- copy posted articles to my personal e-mail. Thank you.

- Raw text -


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