🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #52650

ANSI malloc: void * or char *

#52650
From: John Kapenga
Date: Sun, 21 Jun 1992 19:13
18 lines
1333 bytes
hi;
In the gcc2.2.2 install for X11R5 I see that twm pickes up a conflict.
It assumes malloc and realloc are type   char *,
which is the type they have in SUN-OS 4.1.1 and I see that referenced
in Plaugers book on the std lib.
However gcc, and the include files fixincludes generates, have it
as type  void *  for both malloc and realloc.

Sorry if I missed this somewhere, I expect it has been asked before :-)
I can adjust X11 either way, it appear to me I'll go char *, though
void *  seem a better choice.

john
-- 
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
John A. Kapenga                   Department of Computer Science
Ma Bell:  (616)387-5657           Western Michigan University
Internet: john@cs.wmich.edu       Kalamazoo, MI 49008
Technical Details
Message-ID: <1992Jun21.191334.5771@sol.cs.wmich.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sol.ctr.columbia.edu!destroyer!gumby!wmu-coyote!john

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,22b492cf22b362a5,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1992-06-21 07:23:42 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sol.ctr.columbia.edu!destroyer!gumby!wmu-coyote!john
From: john@sol.cs.wmich.edu (John Kapenga)
Subject: ANSI malloc: void *  or  char *
Message-ID: <1992Jun21.191334.5771@sol.cs.wmich.edu>
Keywords: ANSI malloc
Organization: Western Michigan Univ. Comp. Sci. Dept.
Date: Sun, 21 Jun 1992 19:13:34 GMT
Lines: 18