C99 C89

This is a discussion on C99 C89 within the C Programming forums, part of the General Programming Boards category; Hi all, What is C99 and C89 ?? Is there anywhere I can download it?...

  1. #1
    Registered User
    Join Date
    Dec 2007
    Posts
    84

    C99 C89

    Hi all,

    What is C99 and C89 ??
    Is there anywhere I can download it?

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    These are short names for the two versions of the ISO C standard. C89 refers to ISO/IEC 9899:1990 (it's called C89 because the ANSI C standard was published in 1989; because the ISO standard was published in 1990, it's also sometimes called C90). C99 refers to ISO 9899:1999.

    You have to pay for the standard documents. You can get them at the ISO homepage, but they're not cheap. Alternatively, there's a sticky thread where you can find links to download the final public drafts of the documents. Note that these drafts can differ in details from the actual standards.

    To actually program in C, you need a C compiler instead. You can find a list here.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    Registered User
    Join Date
    Dec 2007
    Posts
    84
    Thank you!!!

    How can I know which ISO my compiler use??
    For example I am using Visual Stduio 6.

    Thanks again

  4. #4
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    VC++ 6 has complete support for C89 and none for C99.

    In general, the standards require that a specific preprocessor macro is defined to a specific value for every version. The Wikipedia entry on C lists the macro name and values, and there's a site that specializes in listing predefined macros. I forgot which. (Salem ought to have the link.)
    However, the macro isn't entirely reliable, because compilers are really only allowed to define it if they support the standard in full. There is no way, really, to indicate partial support.

    As it stands, Sun CC has full C99 support, GCC has nearly full C99 support, MS and Borland compiler have very little C99 support (mostly in the form of extensions backported from C++), and I don't know about others.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  5. #5
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >How can I know which ISO my compiler use??
    If your compiler supports C99 it'll document it.

    >Is there anywhere I can download it?
    If you're on Linux, you can download a trial version of Intel's C compiler, which supports C99 (completely, IIRC). lcc-win32, Digital Mars, GCC, and Open Watcom are all freely available and all have partial support for C99. Of those, the only one that doesn't support C89 is lcc-win32. For $50 you can download Comeau C/C++ which gives you full C support across the board, but it doesn't come with a library and you have to piecemeal it together.

    >You can get them at the ISO homepage, but they're not cheap.
    For the electronic version, $18 is exceptionally cheap.

    >Note that these drafts can differ in details from the actual standards.
    Minor details that really only matter to implementors.
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C89 or C99
    By talin in forum C Programming
    Replies: 6
    Last Post: 05-26-2008, 12:45 PM
  2. My C89 RANT!
    By evildave in forum C Programming
    Replies: 12
    Last Post: 12-07-2005, 09:15 PM
  3. C99 and int main()
    By cwr in forum C Programming
    Replies: 8
    Last Post: 09-19-2005, 06:54 AM
  4. C89 and C99
    By Brain Cell in forum C Programming
    Replies: 5
    Last Post: 02-23-2005, 11:21 PM
  5. My first game
    By homeyg in forum Game Programming
    Replies: 20
    Last Post: 12-22-2004, 04:25 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21