An Introduction to Professional C Programming
Robert C. Seacord
C-Programming#
C23#
robust#
کتاب «Effective C» ویرایش دوم، نوشتهٔ رابرت سی. سیکورد، مقدمهای جامع بر برنامهنویسی حرفهای زبان C است که بهتازگی برای پوشش استاندارد C23 بهروزرسانی شده است. این کتاب با هدف آموزش بهترین شیوهها برای نوشتن برنامههای حرفهای، کارآمد و ایمن طراحی شده است.
مطالب کتاب شامل موضوعاتی نظیر استفاده مؤثر از اشیاء، توابع و انواع داده، مدیریت صحیح تخصیص حافظه پویا، استفاده بهینه از رشتهها و کاراکترها، انجام عملیات ورودی/خروجی با استفاده از جریانهای استاندارد C و توصیفگرهای فایل POSIX، و استفاده مؤثر از پیشپردازنده C است. همچنین، به موضوعات اشکالزدایی، تست و تحلیل برنامههای C پرداخته میشود.
رابرت سی. سیکورد، برنامهنویس و مدرس برجستهٔ زبان C، ریاست کمیته استانداردهای C را بر عهده دارد. او در شرکتهایی مانند IBM و X Consortium فعالیت داشته و در حال حاضر در شرکت Woven by Toyota مشغول به کار است. سیکورد بهعنوان پژوهشگر در مؤسسه مهندسی نرمافزار دانشگاه کارنگی ملون و استاد در دانشکده علوم کامپیوتر این دانشگاه، مؤسسه شبکهسازی اطلاعات و دانشگاه پیتسبرگ فعالیت کرده است. از دیگر آثار او میتوان به «The CERT® C Coding Standard» و «Secure Coding in C and C++» اشاره کرد.
Effective C, 2nd edition, is an introduction to essential C language programming that will soon have you writing programs, solving problems, and building working systems.
The latest release of the C programming language, C23, enhances the safety, security, and usability of the language. This second edition of Effective C has been thoroughly updated to cover C23, offering a modern introduction to C that will teach you best practices for writing professional, effective, and secure programs that solve real-world problems.
Effective C is a true product of the C community. Robert C. Seacord, a long-standing member of the C standards committee with over 40 years of programming experience, developed the book in collaboration with other C experts, such as Clang’s lead maintainer Aaron Ballman and C project editor JeanHeyd Meneide. Thanks to the efforts of this expert group, you’ll learn how to:
The world runs on code written in C. Effective C will show you how to get the most out of the language and build robust programs that stand the test of time.
New to this edition: This edition has been extensively rewritten to align with modern C23 programming practices and leverage the latest C23 features.
Updated to cover C23
Table of Contents
1. Getting Started With C
2. Objects, Functions, and Types
3. Arithmetic Types
4. Expressions and Operators
5. Control Flow
6. Dynamically Allocated Memory
7. Characters and Strings
8. Input/Output
9. Preprocessor
10. Program Structure
11. Debugging, Testing, and Analysis
Review
"This is why you should program in C. Because other languages don’t open portals to hell.”
—Michał Zalewski, former CISO, Snap Inc., author of Silence on the Wire
About the Author
Robert C. Seacord, a world-renowned C programmer and educator, is the convenor of the C standards committee. Seacord’s industry experience includes roles at IBM, the X Consortium, and currently Woven by Toyota. He was a researcher at Carnegie Mellon University’s Software Engineering Institute and professor at the Carnegie Mellon School of Computer Science, the Information Networking Institute, and the University of Pittsburgh. His previous books include The CERT® C Coding Standard and Secure Coding in C and C++.