Writing Bug-Free C Code
A Programming Style That Automatically Detects Bugs in C Code
by Jerry Jongerius / January 1995

0. Preface
1. Understand Why Bugs Exist
2. Know Your Environment
3. Rock-Solid Base
4. The Class Methodology
5. A New Heap Manager
6. Designing Modules
7. General Tips
8. Style Guide
9. Conclusion
A. Appendix: Code Listings
References
  C Programming with:
  • Class Methodology §4
  • Data hiding §4.2
  • Runtime type checking §4.4
  • Compile time type checking §4.3
  • Fault tolerant asserts §3.3
  • Fault tolerant functions §4.6
  • Compile-time asserts §2.1.4
  • Symbolic heap walking §5.2.9
  • Heap leak detection §5.5

Book C Source Code (9k): source.zip (for DOS, Windows, UNIX, etc)

  Sections of this book that talk about Microsoft or Windows are generally marked with the 'Windows' graphic. You can safely skip those sections of this book if you want to.