Online C reference manuals

15.8k Views Asked by At

I've studied C programming in college some years ago and have developed some medium applications back then (nothing serious). Now I have to develop some more 'advanced' C applications (involving POSIX threads and RPC), but right now I'm a little rusty even with the basics.

Can anyone recommend me good online C reference manuals? This may help me get in tune faster.

9

There are 9 best solutions below

2
On BEST ANSWER

I got these all from a previous similar question on SO. I would like to credit the original posters, but unfortunately cannot seem to find that question.

1
On

For the very basic I found this reference card very useful. Doesn't help with more advanced functions but it can help get the rust off.

0
On

The best C reference by far is Kernighan and Ritchie's "The C Programming Language" in it's dead tree form. It's compact and complete.

For an online reference, you might try Brian Kernighan's Programming in C Tutorial.

2
On
3
On

It's not online, but hands down the best C reference is Harbison & Steele (yeah - it's better than K&R).

You can get the 4th edition for basically shipping (I don't know what improvements were made in the 5th ed.):

http://www.amazon.com/dp/0133262243

0
On

the C book is freely available on-line. It is not really a reference manual, but still a pretty good resource. From the website:

This is the online version of The C Book, second edition by Mike Banahan, Declan Brady and Mark Doran, originally published by Addison Wesley in 1991. This version is made freely available.

While this book is no longer in print, its content is still very relevant today. The C language is still popular, particularly for open source software and embedded programming. We hope this book will be useful, or at least interesting, to people who use C.

0
On

The best online reference for C and C++ is probably www.cplusplus.com

QuantumPete

1
On

Don't forget man pages. If you are developing on any UNIX-derived platform (Linux, BSD, Cygwin) you can almost always do something like man printf or info printf to get documentation for any library function.

0
On

I would recommend reading through the comp.lang.c FAQ at least once to help get the rust off. For reference material, you might want to grab a copy of the C Standard, the latest version of C99 with TC3 included is available for free here, for C89 the last draft version is available as a text file or you can pick up a copy of the The Annotated ANSI C Standard for a few bucks and have a hard copy of the actual standard (just ignore the "annotations" on the right-hand pages). Since you are using POSIX you might want to become more familiar with the Single Unix Specification which includes the Standard C library as well as the POSIX functions, you can read/download SUSv3 at the Open Group (registration required but free and quick).

For an offline resource I would also recommend C: A Reference Manual (5th Edition) by Harbison & Steele, it thoroughly covers every language feature and standard function of C and documents differences between the various standard versions.