Online C reference manuals [closed]
Asked Answered
B

9

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.

Battue answered 10/10, 2008 at 3:21 Comment(0)
M
7

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.

Mississippian answered 10/10, 2008 at 3:28 Comment(2)
That first link is dead.Matthaus
Second link died a while ago, too. :(Christensen
A
10

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.

Aklog answered 10/10, 2008 at 3:28 Comment(1)
It did help a lot as a quick reference while programming. Thanks!Battue
M
7

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.

Mississippian answered 10/10, 2008 at 3:28 Comment(2)
That first link is dead.Matthaus
Second link died a while ago, too. :(Christensen
J
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

Jemie answered 10/10, 2008 at 3:35 Comment(3)
Can you qualify "better" than K&R?Peppergrass
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.Jemie
@MichaelBurr: The fifth edition can be found online here.Couplet
H
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.

Hoitytoity answered 14/10, 2008 at 21:25 Comment(1)
Make sure you do man 3 printf - that one always trips me up.Cameleer
P
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.

Peppergrass answered 10/10, 2008 at 3:29 Comment(0)
S
2

manuals

tutorial

Straitlaced answered 10/10, 2008 at 3:31 Comment(2)
The microsoft's link is for C++ not C!Fanchan
This one looks like C. msdn.microsoft.com/en-us/library/fw5abdx6.aspxStraitlaced
L
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.

Looker answered 10/10, 2008 at 8:47 Comment(0)
M
1

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

QuantumPete

Manifesto answered 13/10, 2008 at 9:38 Comment(0)
M
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.

Mishear answered 12/10, 2008 at 14:18 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.