المتغيرات
فضاءات التسمية
أفعال

معالجة الأخطاء

من cppreference.com
< c

محتويات

[تعديل] الأنواع

معرفة في ملف <errno.h>
معرفة في ملف <stdio.h>
errno_t
(C11)
نوع قيمة errno
(معرف بـ typedef)

[تعديل] أرقام الأخطاء

معرفة في ملف <errno.h>
ماكرو يحمل قيمة خطأ محلية للـ thread
(macro variable) [edit]
macros for standard POSIX-compatible error conditions
(ثابت ماكرو) [edit]

[تعديل] التأكد من الأخطاء

معرفة في ملف <assert.h>
تقوم بإيقاف البرنامج إذا كان ناتج الشرط المقدم من قبل المستخدم ليس true. ليست مفعلة في الـ release build
(ماكرو دالة) [edit]
issues a compile-time diagnostic if the value of a constant expression is false
(ماكرو دالة)

[تعديل] التأكد من الحدود

معرفة في ملف <stddef.h>
rsize_t
(C11)
مثل size_t‎
(معرف بـ typedef)
معرفة في ملف <stdint.h>
RSIZE_MAX
(C11)
largest acceptable size for bounds-checked functions
(ثابت ماكرو)
معرفة في ملف <stdlib.h>
set the error callback for bounds-checked functions
(دالة) [edit]
abort callback for the bounds-checked functions
(دالة) [edit]
ignore callback for the bounds-checked functions
(دالة) [edit]

[تعديل] أنظر أيضا

تحدد آلية التعامل مع الأخطاء في الدوال الرياضية الشائعة
(ثابت ماكرو) [edit]
مقالة مرجع C++‎ عن معالجة الأخطاء