Where to find C lang + std lib documentation?

Go To Last Post
8 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi

This might seem like a stupid question but where do I find a good collection off documentation for the C language?

The thing is before I never minded to have some documentation in that book, some on that site some in that other book etc etc.
And then I find my self searching google for examples...

But after some high lever programing in php and java I kind off miss having a good collection off documentation in the same place.

Just look at the documentation for php at php.net and do a search for something simple like echo (the printf off php).
Then you find:
1. A quite good description
2. Parameters and return values
3. Some nice examples off how to use it
4. Notes and Se also (that always points to other relevant information)
5. User input about the function (if it is a function)

However I have search for something like this for C and for the nearly standard libs that are available.

Have you seen a good site with a good collection off searchable documentation?

And since this is a AVR-GCC forum,
let's focus in on that.

But as a interesting sidekick we could also think about the AVR32-GCC and Linux...

So what is you primary source for C documentation?

Thanks
Johan

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

There is a sticky note on this in the main forum.

There is a draft of standard C available at
http://www.open-std.org/jtc1/sc2...

For general C lookup, I use one of my books or go to
http://www.acm.uiuc.edu/webmonke...

Lee

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The C Programming Language by Kernighan and Ritchie.

Regards,
Steve A.

The Board helps those that help themselves.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

1+ for the K&R book. While not an online reference, I think it pays for itself rather quickly in saved time becoming proficient using C.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

As well as the obvious K&R (and of course the online user manual for avr-libc: http://www.nongnu.org/avr-libc/u... ) one book that I always have on my desk is actually a copy of the Borland C V3 library reference manual dating from 1991 - I was kind of hoping it might be online these days as a PDF but while you can get a free copy of Borland C it doesn't seem to come with much help.

(though it seems you can buy a copy at ebay if you are in Australia: http://cgi.ebay.com.au/Borland-C... )

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Engineering seems to boil down to: Cheap. Fast. Good. Choose two. Sometimes choose only one.

Newbie? Be sure to read the thread Newbie? Start here!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks for all the good links :D

If I had more time one could add a lot off that info together on one place and we would probably be better off than i.e. php.

But it seems like Stu:s idea with a link collection is the best we have for C today, since the documentation is "spread out"

A note thou is that the K&R book is laying on my desk since I tend to look in that from time to time :)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

jsiei97 wrote:
Just look at the documentation for php at php.net and do a search for something simple like echo (the printf off php).
I often use the C runtime library information on Microsoft's MSDN site (http://msdn.microsoft.com/en-us/...) which is easily searchable. In some cases, there are differences between Microsoft's implementation of some of the CRTL functions and those of gcc but in general the information is applicable.

Don Kinzer
ZBasic Microcontrollers
http://www.zbasic.net