Thread: The standard C Library API

  1. #1
    Registered User
    Join Date
    Jul 2005
    Posts
    31

    The standard C Library API

    Hello,

    Is the Standard C Library API on the GNU website (http://www.gnu.org/software/libc/man...ode/index.html) the correct reference for all C programmes? Moreover, it is the version of C that is installed on UNIX, Linux and Windows systems by default? What documentation do you use to when coding?

    Regards,

    Dan

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    You have to read the footnotes of each function,

    eg
    This function was introduced in Amendment 1 to ISO C90.
    This function is a GNU extension and is declared in string.h.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Chinese pâté foxman's Avatar
    Join Date
    Jul 2007
    Location
    Canada
    Posts
    404
    You can find the "official reference" of the C (more precisely, of C99 with TC1, TC2 and TC3) standard library here, chapter 7. Note that not all compilers are fully C99 compliant.

    I normally use this website when I need to look for something related to the C standard library.
    I hate real numbers.

  4. #4
    Registered User
    Join Date
    Jul 2005
    Posts
    31
    Hi,

    OK, thanks for the pointers. I notices that some functions were labels 'GNU Extensions' so wasn't too sure if I could point general users to that GNU C Library docs, but if they read it clearly I think I can.

    Thanks,

    Dan

  5. #5
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    A GNU extention just means that they are standard for the GNU family, and exist beyond the construct of standard C. Usually both gcc and msvc++ both properly comment things that are not standard in their header files.

    If something is a GNU extention that means it will not necessarily exist in other compilers. Make sense?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. GUI with Standard Library
    By Sly in forum C Programming
    Replies: 2
    Last Post: 03-13-2009, 05:06 PM
  2. Difference between GLIBC and Standard C library
    By RoshanX in forum Tech Board
    Replies: 5
    Last Post: 04-15-2007, 02:22 AM
  3. C++ >> Standard Library >> Header File
    By hrk2006 in forum C++ Programming
    Replies: 2
    Last Post: 06-24-2003, 08:30 PM
  4. Replies: 3
    Last Post: 09-04-2002, 09:01 PM
  5. C Standard Library
    By JoshG in forum C Programming
    Replies: 2
    Last Post: 07-17-2002, 09:09 AM