• 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: How to find function definition
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to find function definition


  • Subject: Re: How to find function definition
  • From: Chris Espinosa <email@hidden>
  • Date: Wed, 19 Jan 2005 08:46:21 -0800

On Jan 19, 2005, at 8:02 AM, Jeremy French wrote:

How do I find the definition of a function?

In the Aaron Hillegass book (Cocoa Programming for Mac OSX), there is an example that uses a function called fabs (on page 323). However, there is no explanation of what this function does.

So in XCode 1.5, I option-clicked on "fabs" in some source code, and HELP displayed the following information (from Apple's "Mathematical and Logical Utilities Reference"):

---
fabs

double_t fabs (
   double_t x
);

Parameter Descriptions
x

function result
See page for a description of the double_t data type.


Availability

Available in CarbonLib 1.0 and later when MathLib 1.0 or later is present. Available in Mac OS X 10.0 and later.

Header: fp.h
---

Unfortunately the above documentation doesn't seem very helpful. What does the function do? Why isn't there a description of what it does? Where do I find an explanation of what "fabs" returns?


Also see:
<http://developer.apple.com/documentation/Carbon/Reference/ Mathematical_al_Utilities/index.html>

'fabs' was originally defined in SANE, then in Mac OS 7–9, then in Carbon. In Mac OS X its implementation is provided by the standard UNIX libraries and headers, and hence its documentation comes from there, too. Try Help -> Open man page... and enter 'fabs' to see the same page Marshall pointed out.


In Xcode 2.0 the Search Documentation menu item will search man pages, too, so you will have gotten two pages in your search result: the Carbon header and the UNIX man page.

Chris _______________________________________________
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: 
 >How to find function definition (From: Jeremy French <email@hidden>)

  • Prev by Date: Re: XCode Startup Error
  • Next by Date: Re: XCode Startup Error
  • Previous by thread: Re: How to find function definition
  • Next by thread: local relocation entries in non-writable section?
  • Index(es):
    • Date
    • Thread