19

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.

mmutilva
  • 18,688
  • 22
  • 59
  • 82

9 Answers9

9

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.

acrosman
  • 12,814
  • 10
  • 39
  • 55
6

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.

Frank V
  • 25,141
  • 34
  • 106
  • 144
Dan Lenski
  • 76,929
  • 13
  • 76
  • 124
4

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

Michael Burr
  • 333,147
  • 50
  • 533
  • 760
  • Can you qualify "better" than K&R? – JR Lawhorne Jun 19 '09 at 16:51
  • 4
    Well, it's just an opinion (and it's been a while since I've even looked at K&R), but it's comprehensive, clear, covers all the variants - pre-standard, standard, Unix, and even a bit of information on differences between C & C++. From my recollection, K&R is more of a tutorial than a reference. – Michael Burr Jun 19 '09 at 19:41
  • @MichaelBurr: The fifth edition can be found online [here](https://savedparadigms.files.wordpress.com/2014/09/harbison-s-p-steele-g-l-c-a-reference-manual-5th-ed.pdf). – Noob Saibot Dec 21 '14 at 03:16
4

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.

Frank Szczerba
  • 5,000
  • 3
  • 31
  • 31
2

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.

JR Lawhorne
  • 3,192
  • 4
  • 31
  • 41
2

manuals

tutorial

Arle Nadja
  • 396
  • 4
  • 8
1

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.

Jan de Vos
  • 3,778
  • 1
  • 20
  • 16
1

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

QuantumPete

Peter Kühne
  • 3,224
  • 1
  • 20
  • 24
0

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.

Robert Gamble
  • 106,424
  • 25
  • 145
  • 137