From: Erik Max Francis Newsgroups: comp.os.msdos.djgpp Subject: Re: Pointers Date: Sun, 13 Oct 1996 19:46:47 -0700 Organization: Alcyone Systems Lines: 15 Message-ID: <3261A997.C77C4AE@alcyone.com> References: <53oa2v$kr4 AT miracle DOT cybernex DOT net> NNTP-Posting-Host: newton.alcyone.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp mrichman AT cybernex DOT net wrote: > Is it safe to assume that all pointer variables take up the same > number of bytes, or is that compiler dependent. The size of pointers can be of varying sizes according to the ANSI C standard (although they rarely are), but you're guaranteed that you can always cast any pointer (even a function pointer) to a void * and back with no risk of data loss. -- Erik Max Francis | max AT alcyone DOT com Alcyone Systems | http://www.alcyone.com/max/ San Jose, California | 37 20 07 N 121 53 38 W &tSftDotIotE | R^4: the 4th R is respect