Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!cmcl2!seismo!brl-adm!brl-smoke!smoke!gwyn@BRL.ARPA From: gwyn@BRL.ARPA (VLD/VMB) Newsgroups: net.lang.c Subject: Re: void * Message-ID: <200@brl-smoke.ARPA> Date: Tue, 22-Apr-86 14:12:04 EST Article-I.D.: brl-smok.200 Posted: Tue Apr 22 14:12:04 1986 Date-Received: Thu, 24-Apr-86 07:21:11 EST Sender: news@brl-smoke.ARPA Lines: 7 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 *).