C in a Nutshell
The Definitive Reference (Covers C11 standard)
Samenvatting
The new edition of this classic O’Reilly reference provides clear, detailed explanations of every feature in the C language and runtime library, including multithreading, type-generic macros, and library functions that are new in the 2011 C standard (C11). If you want to understand the effects of an unfamiliar function, and how the standard library requires it to behave, you’ll find it here, along with a typical example.
Ideal for experienced C and C++ programmers, this book also includes popular tools in the GNU software collection. You’ll learn how to build C programs with GNU Make, compile executable programs from C source code, and test and debug your programs with the GNU debugger.
In three sections, this authoritative book covers:
- C language concepts and language elements, with separate chapters on types, statements, pointers, memory management, I/O, and more
- The C standard library, including an overview of standard headers and a detailed function reference
- Basic C programming tools in the GNU software collection, with instructions on how use them with the Eclipse IDE
Specificaties
Inhoudsopgave
U kunt van deze inhoudsopgave een PDF downloaden
Part 1: Language
1. Language Basics
-Characteristics of C
-The Structure of C Programs
-Source Files
-Comments
-Character Sets
-Identifiers
-How the C Compiler Works
2. Types
-Typology
-Integer Types
-Floating-Point Types
-Complex Floating-Point Types
-Enumerated Types
-The Type void
-The Alignment of Objects in Memory
3. Literals
-Integer Constants
-Floating-Point Constants
-Character Constants
-String Literals
4. Type Conversions
-Conversion of Arithmetic Types
-Conversion of Nonarithmetic Types
5. Expressions and Operators
-How Expressions Are Evaluated
-Operators in Detail
-Constant Expressions
6. Statements
-Expression Statements
-Block Statements
-Loops
-Selection Statements
-Unconditional Jumps
7. Functions
-Function Definitions
-Function Declarations
-How Functions Are Executed
-Pointers as Arguments and Return Values
-Inline Functions
-Non-Returning Functions
-Recursive Functions
-Variable Numbers of Arguments
8. Arrays
-Defining Arrays
-Accessing Array Elements
-Initializing Arrays
-Strings
-Multidimensional Arrays
-Arrays as Arguments of Functions
9. Pointers
-Declaring Pointers
-Operations with Pointers
-Pointers and Type Qualifiers
-Pointers to Arrays and Arrays of Pointers
-Pointers to Functions
10. Structures, Unions, and Bit-Fields
-Structures
-Unions
-Anonymous Structures and Unions
-Bit-Fields
11. Declarations
-Object and Function Declarations
-Type Names
-typedef Declarations
-_Static_assert Declarations
-Linkage of Identifiers
-Storage Duration of Objects
-Initialization
12. Dynamic Memory Management
-Allocating Memory Dynamically
-Characteristics of Allocated Memory
-Resizing and Releasing Memory
-An All-Purpose Binary Tree
-Characteristics
-Implementation
13. Input and Output
-Streams
-Files
-Opening and Closing Files
-Reading and Writing
-Random File Access
14. Multithreading
-Threads
-Accessing Shared Data
-Communication Between Threads: Condition Variables
-Thread-Local Objects and Thread-Specific Storage
15. Preprocessing Directives
-Inserting the Contents of Header Files
-Defining and Using Macros
-Type-generic Macros
-Conditional Compiling
-Defining Line Numbers
-Generating Error Messages
-The #pragma Directive
-The _Pragma Operator
-Predefined Macros
Part 2: Standard Library
16. The Standard Headers
-Using the Standard Headers
-Functions with Bounds-Checking
-Contents of the Standard Headers
17. Functions at a Glance
-Input and Output
-Mathematical Functions
-Character Classification and Conversion
-String Processing
-Multibyte Characters
-Converting Between Numbers and Strings
-Searching and Sorting
-Memory Block Handling
-Dynamic Memory Management
-Date and Time
-Process Control
-Internationalization
-Nonlocal Jumps
-Multithreading (C11)
-Debugging
-Error Messages
18. Standard Library Functions
Part 3: Basic Tools
19/ Compiling with GCC
-The GNU Compiler Collection
-Obtaining and Installing GCC
-Compiling C Programs with GCC
-C Dialects
-Compiler Warnings
-Optimization
-Debugging
-Profiling
-Option and Environment Variable Summary
20. Using make to Build C Programs
-Targets, Prerequisites, and Commands
-The Makefile
-Rules
-Comments
-Variables
-Phony Targets
-Other Target Attributes
-Macros
-Functions
-Directives
-Running make
21. Debugging C Programs with GDB
-Installing GDB
-A Sample Debugging Session
-Starting GDB
-Using GDB Commands
-Analyzing Core Files in GDB
22. Using an IDE with C
-IDEs for C
-The Eclipse IDE for C/C++
-Developing a C Program with Eclipse
-Debugging a C Program in Eclipse
-Further Information on Eclipse
Index
Anderen die dit boek kochten, kochten ook
Net verschenen
Rubrieken
- aanbestedingsrecht
- aansprakelijkheids- en verzekeringsrecht
- accountancy
- algemeen juridisch
- arbeidsrecht
- bank- en effectenrecht
- bestuursrecht
- bouwrecht
- burgerlijk recht en procesrecht
- europees-internationaal recht
- fiscaal recht
- gezondheidsrecht
- insolventierecht
- intellectuele eigendom en ict-recht
- management
- mens en maatschappij
- milieu- en omgevingsrecht
- notarieel recht
- ondernemingsrecht
- pensioenrecht
- personen- en familierecht
- sociale zekerheidsrecht
- staatsrecht
- strafrecht en criminologie
- vastgoed- en huurrecht
- vreemdelingenrecht