Re: ansi vs iso C
ANSI and ISO are just different organizations that ratify standards. The standards that one of them produces is usually named by the year it came out: C89 (aka C90) is the standard released in 1989, and the other major standard C99 was released in 1999. In general, you can assume most compilers/systems will implement C89 - it's been around a long time and has pretty much universally been adopted. C99, despite being around for over 10 years, is still not supported everywhere. Major open source compilers (gcc, clang) implement C99 fully, Microsoft's C compiler, however, doesn't. So, if you want to write portable code, it's best to restrict yourself to C89. If you know your code will always be run on a platform that supports it, it's fine to use C99. Note also that some compilers have their own extensions to the language (gnu89, gnu99, etc from gcc. it defaults to gnu89).
Generally, when one says "ANSI C", they mean C89/C90.
Note: there's also a new C11 standard, but since it was only just published it doesn't have wide support.
Last edited by schauerlich; March 9th, 2012 at 07:35 AM.
Posting code? Use the [code] or [php] tags.
I don't care, I'm still free. You can't take the sky from me.