C and C++
The C standard is ISO/IEC 9899:1999. This is `C99', replacing the
previous 1989 standard for ANSI C (plus an amendment AM1 (1995) and
two corrigenda TCOR1 (1995) and TCOR2 (1996)). The ANSI version of
this ISO standard, ANSI/ISO/IEC 9899-1999, is available for
(currently) $18 from
<webstore.ansi.org>.
The ISO committee which looks after C is
ISO/
IEC
JTC1/
SC22,
working groups
WG14, C
and
WG21, C++.
The C++ standard is ISO/IEC 14882:1998 (available for $283 from
webstore.ansi.org).
The
1997 second Committee Draft is available online for
free, and the NCITS adoption of this standard, INCITS/ISO/IEC
14882-1998, is available for $18 from
webstore.ansi.org.
- The excellent
C FAQ
(
text-only version)
contains substantially more than you realised you wanted to
know about C.
- Style guides include the famous
Indian Hill C style guide.
The source for this is a
tar archive, but there are various HTMLisations of it
around the place: such as
this one. Within that, section
section 16, on portability, is good.
There are several other style guides and C tutorials mentioned in the C
FAQ, including those in sections
17.9
and
18.9.
- Starlink C programming standard
SGP/4. C style guide (specific to Starlink, and arguably a
little dated, now).
- Gary Ferland (of Cloudy) produced some notes on
converting Fortran to C which is ``a preliminary version of a document that would have
helped me [Ferland] during my C learning experiences''. The
motivation for this was the
conversion of Cloudy from Fortran to C.
C++ resources
Boost.org is a collection of
portable C++ source libraries, originally begun by members of the C++
committee, but now somewhat expanded.