• 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: Nat! <email@hidden>
  • Date: Thu, 24 Aug 2006 00:10:11 +0200


Am 20.08.2006 um 12:20 schrieb Peter Seebach:

In message <email@hidden>, Uli Kusterer writes:
 you know how main() can be declared with varying parameter counts,
like

int main()

or

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

and even more.

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

No.


Can you show an example, where sending a superflous parameter to a C function creates a problem with current Mach-O ABIs ?


Ciao
   Nat!
------------------------------------------------------
You know, in the Bible it doesn't say,
"Waddle forth and calcify." -- DLR

_______________________________________________
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


  • Follow-Ups:
    • Re: Passing too many parameters to a function?
      • From: email@hidden (Peter Seebach)
References: 
 >Re: Passing too many parameters to a function? (From: email@hidden (Peter Seebach))

  • Prev by Date: macosforge website Alluya
  • 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: Re: Passing too many parameters to a function?
  • Index(es):
    • Date
    • Thread