21st Century C: C Tips from the New School

Couverture
"O'Reilly Media, Inc.", 27 sept. 2014 - 408 pages

Throw out your old ideas about C and get to know a programming language that’s substantially outgrown its origins. With this revised edition of 21st Century C, you’ll discover up-to-date techniques missing from other C tutorials, whether you’re new to the language or just getting reacquainted.

C isn’t just the foundation of modern programming languages; it is a modern language, ideal for writing efficient, state-of-the-art applications. Get past idioms that made sense on mainframes and learn the tools you need to work with this evolved and aggressively simple language. No matter what programming language you currently favor, you’ll quickly see that 21st century C rocks.

  • Set up a C programming environment with shell facilities, makefiles, text editors, debuggers, and memory checkers
  • Use Autotools, C’s de facto cross-platform package manager
  • Learn about the problematic C concepts too useful to discard
  • Solve C’s string-building problems with C-standard functions
  • Use modern syntactic features for functions that take structured inputs
  • Build high-level, object-based libraries and programs
  • Perform advanced math, talk to internet servers, and run databases with existing C libraries

This edition also includes new material on concurrent threads, virtual tables, C99 numeric types, and other features.

 

Table des matières

Part I The Environment
1
Chapter 1 Set Yourself Up for Easy Compilation
3
Chapter 2 Debug Test Document
33
Chapter 3 Packaging Your Project
67
Chapter 4 Version Control
95
Chapter 5 Playing Nice with Others
109
Part II The Language
123
Chapter 6 Your Pal the Pointer
125
Chapter 10 Better Structures
207
Chapter 11 ObjectOriented Programming in C
247
Chapter 12 Parallel Threads
291
Chapter 13 Libraries
323
Epilogue
343
Appendix A C 101
345
Glossary
365
References
369

Chapter 7 Inessential C Syntax that Textbooks Spend a Lot of Time Covering
143
Chapter 8 Important C Syntax that Textbooks Often Do Not Cover
163
Chapter 9 Easier Text Handling
187
Index
373
About the Author
384
Droits d'auteur

Autres éditions - Tout afficher

Expressions et termes fréquents

À propos de l'auteur (2014)

Ben Klemens has been doing statistical analysis and computationally-intensive modeling of populations ever since getting his PhD in Social Sciences from Caltech. He is of the opinion that writing code should be fun, and has had a grand time writing analyses and models (mostly in C) for the Brookings Institution, the World Bank, National Institute of Mental Health, et al. As a Nonresident Fellow at Brookings and with the Free Software Foundation, he has done work on ensuring that creative authors retain the right to use the software they write. He currently works for the United States FederalGovernment.

Informations bibliographiques