[4896] in Athena Bugs
Re: vax 6.4r Hesiod library lint error
daemon@ATHENA.MIT.EDU (marc@ATHENA.MIT.EDU)
Wed May 9 05:48:32 1990
From: marc@ATHENA.MIT.EDU
To: "Jonathan I. Kamens" <jik@PIT-MANAGER.MIT.EDU>
Cc: marc@MIT.EDU, epeisach@ATHENA.MIT.EDU, bugs@ATHENA.MIT.EDU
In-Reply-To: Your message of Wed, 09 May 90 02:35:30 -0400.
Reply-To: marc@MIT.EDU
Date: Wed, 09 May 90 05:48:04 EDT
>> From: marc@ATHENA.MIT.EDU
>> Reply-To: marc@MIT.EDU
>> Usmail: Marc Horowitz, 3 Ames Street, Cambridge, MA 02139
>> Phone: (617)225-6447
>> Date: Sat, 14 Apr 90 23:39:56 EDT
>>
>> I'm really reluctant to extern declare a library function at the top
>> of the file. I believe that <stdlib.h> defines malloc, for instance,
>> on an ANSI system. I would rather see every call to malloc casted.
>>
>> Marc
>>
>> Yes, but we don't have <stdlib.h> on Athena, and the source files in
>> question don't include <stdlib.h>, and we don't have anything like
>> <malloc.h> either.
>>
>> In our environment, malloc() returns a char *. The man page says
>> so. It is therefore correct to declare it as an extern function
>> returning a char *.
>>
>> jik
Not in any code I write. I'll cast, first. I usually cast, anyway,
for just this reason. You never can be sure.
Marc