C is one of the oldest programming languages and still one of the
most widely used. Whether you're an experienced C programmer or
you're new to the language, you know how frustrating it can be
to hunt through hundreds of pages in your reference books to find
that bit of information on a certain function, type or other syntax
element. Or even worse, you may not have your books with you. Your
answer is the C Pocket Reference. Concise and easy to use, this
handy pocket guide to C is a must-have quick reference for any C
programmer. It's the only C reference that fits in your pocket
and is an excellent companion to O'Reilly's other C
Ideal as an introduction for beginners and a quick reference for
advanced programmers, the C Pocket Reference consists of two parts:
a compact description of the C language and a thematically
structured reference to the standard library. The representation of
the language is based on the ANSI standard and includes extensions
introduced in 1999. An index is included to help you quickly find
the information you need.
This small book covers the following:
- C language fundamentals
- Data types
- Expressions and operators
- C statements
- Preprocessor directives
- The standard library
O'Reilly's Pocket References have become a favorite among
programmers everywhere. By providing a wealth of important details
in a concise, well-organized format, these handy books deliver just
what you need to complete the task at hand. When you've reached
a sticking point in your work and need to get to a solution
quickly, the new C Pocket Reference is the book you'll want to
Ulla Kirch-Prinz is chair of Data Base Systems and Data Communications at the Department of Computer Science and Mathematics, University of Applied Sciences, Munich. She also teaches Algorithms and Data Structures, and System Programming.
Ulla is co-author with her husband Peter of several other books on software development in C/C++. More recent projects include "A Complete Guide to Programming in C++" (Jones & Bartlett Publishers, 2002).
Ulla currently resides in Munich, Germany with Peter and their two children: Vivi and Jeany. She may be contacted by email at firstname.lastname@example.org and you can learn more about her by visiting her website at http://www.cs.fhm.edu/~prinz/english/cb1.html
Peter Prinz specializes in developing software and in teaching Assembler, C/C++/C#, Java, Windows (MFC), and UNIX system programming.
As the chief developer and cofounder of an IT company, Peter has gained extensive experience in software development for computer telephony. As a seminar leader and key course developer at a professional consulting and training company he has taught courses to thousands of software developers.
Peter is the co-author with his wife Ulla of several other books on software development in C/C++. More recent projects include "A Complete Guide to Programming in C++" (Jones & Bartlett Publishers, 2002).
Peter currently resides in Munich, Germany, with Ulla and their two children: Vivi and Jeany. He may be contacted by email at email@example.com
Introduction Fundamentals C Program Structure Character Sets Identifiers Categories and Scope of Identifiers Basic Types Integer Types Real and Complex Floating Types The Type void Constants Integer Constants Floating Constants Character Constants and String Literals Expressions and Operators Arithmetic Operators Assignment Operators Relational Operators and Logical Operators Logical Operators Bitwise Operators Memory Accessing Operators Other Operators Type Conversions Integer Promotion Usual Arithmetic Conversions Type Conversions in Assignments and Pointers Statements Block and Expression Statements Jumps Loops Unconditional Jumps Declarations General Syntax and Examples Complex Declarations Variables Storage Classes Initialization Derived Types Enumeration Types Structures, Unions, and Bit-Fields Arrays Pointers Type Qualifiers and Type Definitions Functions Function Prototypes Function Definitions Function Calls Functions with Variable Numbers of Arguments Linkage of Identifiers Preprocessing Directives Standard Library Standard Header Files Input and Output Error Handling for Input/Output Functions General File Access Functions File Input/Output Functions Numerical Limits and Number Classification Value Ranges of Integer Types Range and Precision of Real Floating Types Classification of Floating-Point Numbers Mathematical Functions Mathematical Functions for Integer Types Mathematical Functions for Real Floating Types Optimizing Runtime Efficiency Mathematical Functions for Complex Floating Types Type-Generic Macros Error Handling for Mathematical Functions The Floating-Point Environment Character Classification and Case Mapping String Handling Conversion Between Strings and Numbers Multibyte Character Conversion Searching and Sorting Memory Block Management Dynamic Memory Management Time and Date Process Control Communication with the Operating System Signals Non-Local Jumps Error Handling for System Functions Internationalization Index