delorie.com/archives/browse.cgi | search |
From: | fred AT genesis DOT demon DOT co DOT uk (Lawrence Kirby) |
Newsgroups: | comp.lang.c,comp.os.msdos.djgpp |
Subject: | Re: Casting void pointers |
Date: | Tue, 23 Jun 98 12:25:52 GMT |
Organization: | none |
Message-ID: | <898604752snz@genesis.demon.co.uk> |
References: | <6mkaos$k7o AT dfw-ixnews6 DOT ix DOT netcom DOT com> <358F53FE DOT 4D97 AT rug DOT ac DOT be> |
Reply-To: | fred AT genesis DOT demon DOT co DOT uk |
Lines: | 22 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
In article <358F53FE DOT 4D97 AT rug DOT ac DOT be> Vik DOT Heyndrickx AT rug DOT ac DOT be "Vik Heyndrickx" writes: >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? > >To be able to cast a function pointer to a void pointer is a DJGPP >extension to the C language. It is not standard available in all C >implementations or on all platforms. Please consider that when using it! Indeed any compiler that accepts this without a disgnostic is not a C compiler. (By default DJGPP is not a C compiler, it compiles a closely related but different language sometimes referred to as GNU C.) -- ----------------------------------------- Lawrence Kirby | fred AT genesis DOT demon DOT co DOT uk Wilts, England | 70734 DOT 126 AT compuserve DOT com -----------------------------------------
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |