Hi, I need to know the specs. of the C language.I have a few books on C but does anyone have a link/soft copy/forums. Rgds Raj Shetgar
The draft might still be available but it is inaccurate as there were changes between the final public draft and the issued standard
"you should search by the C standard number 9899" I tried that, but couldn't see it before. But now I can - thanks! For under a tenner, I might as well get the C++ one as well!
http://www.techstreet.com/cgi-bin/new_results?searchText=9899&searchType=keyword&newSearch=1&sort=rel&submit.x=37&submit.y=12 you should search by the C standard number 9899
Different beasts. The Hitex one is the C90+A1 (ie C95) Which most embedded compilers work to. It is in hard copy. the techstret one is the US version and is a PDF
"The curren C standard is available as an electronic document from Techstreet at 18 USD" I couldn't see 'C' for download - only C++. Can you give a direct link?
"The curren C standard is available as an electronic document from Techstreet at 18 USD" Cheaper than Hitex, then! ;-)
The curren C standard is available as an electronic document from Techstreet at 18 USD http://www.techstreet.com Or try http://www.wiley.com (or http://www.amazon.com ) as both the C and the C++ standards have been done as books at about 50 USD These are very good. I have both of them.
If you are writing C professionally you need H&S not K&R, you should also have the current ISO C document.
Do not use K&R It is quite old and out of date. The far better book is C Reference Manual by Harbison and Steele BTW this is used by standards people as the K&R 2nd ed is dated 1988. That was in line with ISO C90 since then there were several changes in 93 and 94/5 with amendment 1 Then the complete overhaul for C99. IF you are programming in an embedded environment with a C compiler that is less than 10 years old K&R is not the book to use. I have it for historical reason but I use H&S as a working reference.
What was so funny about it ? Not speaking for David, but there is nothing "funny" about K&R. Perhaps closer to the point is that, although K&R is the "popular choice", for those who travel in the almost-a-language-lawyer circles, H&S is generally more highly regarded than K&R on the basis of dealing with the nitty-gritties that K&R does not touch upon, among other reasons.
I found an early edition of K&R to be something of a joke. ? What was so funny about it ? You know, it's not exactly fair play to judge a book by its earlier editions some 14 years(!) after a heavily revised new edition came out. K&R2 is still the single most important book on C, as a programming language, rather than a particular implementation of that language. Nowadays, it may be a possibility to use H&S and a copy of the actual standard (C90 with all the addenda, a.k.a. C95) instead, but that's only because the price of the standard document has dropped by an order of magnitude recently, so it's now affordable on a non-institutional budget.
That one will no doubt serve you even better, especially when you start wondering what happened to that function you don't have... (In which case you might want to visit http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc/)
Since this is specifically a Keil forum, and the thread specifies C51, the appropriate Library Reference is, surely: http://www.keil.com/support/man/docs/c51/c51_library.htm
A C reference: http://www-ccs.ucsd.edu/c/ Additional library reference: http://www.dinkumware.com/libraries_ref.html
I found an early edition of K&R to be something of a joke. Instead, I rely upon Harbison & Steele; these guys were compiler writers who had to survey many C implementations, in the time before the ANSI effort, in order to produce their own compiler. The language can be a bit difficult, but I've only once come away from that book with unanswered questions or a lack of confidence in what I read (that one occasion dealt with some rather arcane intricacies of the macro processor). Even that said, I'd like to have the actual standard documents. David
View all questions in Keil forum