• 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: Passing too many parameters to a function?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Passing too many parameters to a function?


  • Subject: Re: Passing too many parameters to a function?
  • From: Ilfak Guilfanov <email@hidden>
  • Date: Thu, 24 Aug 2006 00:33:42 +0200
  • Organization: Datarescue sa/nv

Hello Uli,

Sunday, August 20, 2006, 12:17:39 PM, you wrote:

UK>   you know how main() can be declared with varying parameter counts,
UK> like

UK>         int main()

UK> or

UK>         int main( int argc, const char* argv* )

UK> and even more. Does this work for any function? If I pass a function
UK> more parameters than it actually uses, is that safe with OS X's
UK> current Mach-O ABIs?

T think there is no danger in passing more parameters than the called function
expects (unless you specify -mrtd flag to the compiler or do something
else which changes the default environment).

--
Best regards,
 Ilfak                            mailto:email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Passing too many parameters to a function? (From: Uli Kusterer <email@hidden>)

  • Prev by Date: Re: Passing too many parameters to a function?
  • Next by Date: Re: Passing too many parameters to a function?
  • Previous by thread: Re: Passing too many parameters to a function?
  • Next by thread: Why does mount_hfs ignore the sync option?
  • Index(es):
    • Date
    • Thread