definations of built in library functions

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • rams

    definations of built in library functions

    hi all

    i am keen to know where does the built in functions (library
    functions )like PRINTF(),MALLOC ()..etc... are defined.

    as i know , header files contains only prototypes

    i am using gnu compiler -Linux fedora .
  • vippstar@gmail.com

    #2
    Re: definations of built in library functions

    On Jun 2, 4:23 pm, rams <raman....@gmai l.comwrote:
    hi all
    >
    i am keen to know where does the built in functions (library
    functions )like PRINTF(),MALLOC ()..etc... are defined.
    >
    as i know , header files contains only prototypes
    >
    i am using gnu compiler -Linux fedora .
    Weird, two days ago the exact same question was posted by someone
    else.
    read the C-FAQ:
    <http://c-faq.com/resources/stdlibsrc.html>
    thread-from-two-days-ago id: <9f6d4611-b2a2-4184-
    a8da-681582f469e2@k3 0g2000hse.googl egroups.com>

    Comment

    • Richard Heathfield

      #3
      Re: definations of built in library functions

      rams said:
      hi all
      >
      i am keen to know where does the built in functions (library
      functions )like PRINTF(),MALLOC ()..etc... are defined.
      C doesn't have any functions called PRINTF or MALLOC in its standard
      library. (Hint: C is case-sensitive.)

      Implementations typically provide their library functions in object code
      format - i.e. they've already been compiled, and all you get is the
      relocatable binary.

      But some implementors are public-spirited enough to provide source code.
      The GNU folks do this, for example.

      See http://www.gnu.org/software/libc/libc.html

      --
      Richard Heathfield <http://www.cpax.org.uk >
      Email: -http://www. +rjh@
      Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
      "Usenet is a strange place" - dmr 29 July 1999

      Comment

      Working...