void *

mc68020 at gilbbs mc68020 at gilbbs
Sun Apr 27 00:34:00 AEST 1986


In article <200 at brl-smoke.ARPA>, gwyn at BRL.ARPA (VLD/VMB) writes:
> You're mixing two features of malloc().  Malloc() should return (void *),
> which is a generic pointer type to/from which all other pointer types
> may be cast without loss of information.  (This is the only use of
> (void *), and it is the only universal pointer type; other pointer
> casts can be non-portable.)  Malloc() ALSO guarantees that the pointer
> it returns is suitably aligned for safe casting to ANY pointer type.
> This is a property of malloc(), not of (void *).

   Well, that's just great!  The C compiler on my system doesn't understand
such niceties as void.  So what do we do?  (do *NOT* tell me to get another
compiler, there *IS* no other compiler available for this system!)

-- 
Disclaimer:  I hereby disclaim any and all responsibility for disclaimers.

tom keller
{ihnp4, dual}!ptsfa!gilbbs!mc68020

(* we may not be big, but we're small! *)



More information about the Comp.lang.c mailing list