Steve Summit wrote:
jacob navia wrote:
The section about boolean values should mention
<stdbool.h> at least.
Indeed it should. I'll make a note. Thanks.
E. Robert Tisdale wrote:
The C FAQ is obsolete.
I'm biased, of course, but I think that's a *little* strong.
It needs to be brought up-to-date.
When's the last time you looked at the version posted here?
I consult the C FAQ frequently.
I don't re-read the entire FAQ every time.
I have probably consulted it at least once in the last week or two.
I think Question 9.1
http://www.eskimo.com/~scs/C-faq/q9.1.htm
is most relevant here.
What is the right type to use for Boolean values in C?
Why isn't it a standard type?
Should I use #defines or enums for the true and false values?
C does not provide a standard Boolean type,
This is no longer true.
in part because picking one involves a space/time tradeoff
which can best be decided by the programmer.
This isn't a valid reason for not defining a standard boolean type.
I seem to recall that I recently consulted Question 6.16
http://www.eskimo.com/~scs/C-faq/q6.16.html
How can I dynamically allocate a multidimensional array?
Which does not mention variable dimension arrays --
the safest and simplest solution for new users.
I can't find any FAQ about the restrict keyword.
Question 11.1
http://www.eskimo.com/~scs/C-faq/q11.1.html
What is the ``ANSI C Standard?''
In addition,
both ANSI and ISO require periodic review of their standards.
This process is beginning in 1995,
and will likely result in a completely revised standard
(nicknamed ``C9X'' on the assumption of completion by 1999).
This information is now almost a decade old.
There is a new standard and the C FAQ should be completely overhauled
to reflect the adoption of that new standard.