ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
There is an option in gcc to compile ANSI C only (I think it's --ansi, consult the man pages). You can also use --pedantic.
As for the ANSI C reference, you'll have to buy it from the ANSI standards, consult the comp.lang.c FAQ, I'm sure they have an address for ANSI and how to get the standard. If you just want the ANSI C library reference, there is a book by PJ Plauger named The Standard C Library, it has a complete implementation of the C library plus the standard text. It is a very dry read however, and should only be used as a reference.
I'm pretty sure that you don't want the ANSI C standards, though. It's a good reference if you want to build a C compiler, not as useful if you want to write a program in the language.
I imagine you want an authoratative text from which to learn C, like the Visual Basic programmers manual. It's just my guess, given the inherent newbieality of your post.
In that case, I'd recommend Kernighan & Ritchie's
The C Programming Language, but there are plenty of other books that can be used to learn the language. C isn't as authoritarian as VB, and very few books are going to outright lie about anything.
That being said, I recommend against the O'Reilly book "Practical C Programming" or whatever its called. O'Reilly and Co. put out some good material, but every once in a while they screw up. Also, please don't get anything by a man named Herbert Schildt. He mainly writes C++ books badly, but he's been known to write books on C badly as well.
And don't worry about the mysterious K&R C and how its incompatible with ANSI C. You'd have to go digging to find a book that doesn't focus on the ANSI version. Even Kernighan and Ritchie's book only mentions the older, more cumbersome style.
Also, someone mentioned the reference book on the ANSI library. They're right. It's a very dry read, and probably won't be too helpful. You've got Redhat: you've got the manpages. Type
"Our aim is to provide a complete discussion of the language, the run-time libraries, and a style of C programming that emphasizes correctness, portability, and maintainability."
Includes information on Standard C vs. "traditional" C, (which can be helpful if you ever maintain or study old code) and on C++ compatability issues. Reference as opposed to tutorial, but includes many examples giving advice and pointing out pitfalls. Very clear writing and organization. This book is a thing of beauty!