• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: incompatible implicit declaration of built-in function 'malloc'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: incompatible implicit declaration of built-in function 'malloc'


  • Subject: Re: incompatible implicit declaration of built-in function 'malloc'
  • From: Franco <email@hidden>
  • Date: Sat, 26 Aug 2006 09:50:16 +0200


On Aug 25, 2006, at 10:09pm, Sean McBride wrote:

on the perfectly ordinary-appearing line:

tPtr = tmpStr = (char *)malloc((size_t)leng/2+1);

Do you #include <stdlib.h> ?

Moreover, in C you do not have to cast a malloc'ed pointer, it may prevent some useful warnings.


--
Sensei <email@hidden>

The optimist thinks this is the best of all possible worlds.
The pessimist fears it is true.      [J. Robert Oppenheimer]


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >incompatible implicit declaration of built-in function 'malloc' (From: "Daniel R. Killoran,Ph.D." <email@hidden>)
 >Re: incompatible implicit declaration of built-in function 'malloc' (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: Automate build numbers
  • Next by Date: Command /Developer/Private/jam failed with exit code 1
  • Previous by thread: Re: incompatible implicit declaration of built-in function 'malloc'
  • Next by thread: Re: incompatible implicit declaration of built-in function 'malloc'
  • Index(es):
    • Date
    • Thread