Skip to main content
assistive.skiplink.to.breadcrumbs
assistive.skiplink.to.header.menu
assistive.skiplink.to.action.menu
assistive.skiplink.to.quick.search
Log in
Confluence
Spaces
Hit enter to search
Help
Online Help
Keyboard Shortcuts
Feed Builder
What’s new
Available Gadgets
About Confluence
Log in
SEI CERT C Coding Standard
Pages
Boards
Space shortcuts
Dashboard
Secure Coding Home
Android
C
C++
Java
Perl
Page tree
Browse pages
Configure
Space tools
View Page
A
t
tachments (0)
Page History
Page Information
View in Hierarchy
View Source
Export to PDF
Export to Word
Pages
…
SEI CERT C Coding Standard
3 Recommendations
Rec. 12. Error Handling (ERR)
Page Information
Title:
Rec. 12. Error Handling (ERR)
Author:
Sandy Shrum
Mar 05, 2015
Last Changed by:
David Svoboda
Aug 06, 2025
Tiny Link:
(useful for email)
https://wiki.sei.cmu.edu/confluence/x/adUxBQ
Export As:
Word
·
PDF
Incoming Links
SEI CERT C Coding Standard (1)
Page:
How this Coding Standard is Organized
Hierarchy
Parent Page
Page:
3 Recommendations
Children (7)
Page:
ERR00-C. Adopt and implement a consistent and comprehensive error-handling policy
Page:
ERR01-C. Use ferror() rather than errno to check for FILE stream errors
Page:
ERR02-C. Avoid in-band error indicators
Page:
ERR04-C. Choose an appropriate termination strategy
Page:
ERR05-C. Application-independent code should provide error detection without dictating error handling
Page:
ERR06-C. Understand the termination behavior of assert() and abort()
Page:
ERR07-C. Prefer functions that support error checking over equivalent functions that don't
Labels
Global Labels (3)
recommendation-list
err
section
Recent Changes
Time
Editor
Aug 06, 2025 17:49
David Svoboda
View Changes
May 20, 2025 10:04
David Svoboda
View Changes
May 20, 2025 09:47
David Svoboda
View Changes
May 20, 2025 09:40
David Svoboda
View Changes
REM Cost Reform
Mar 15, 2022 09:44
David Svoboda
View Page History
Outgoing Links
External Links (5)
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://confluence/label/seccode/err
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://confluence/label/seccode/recommendation
SEI CERT C Coding Standard (1)
Home page:
SEI CERT C Coding Standard
Overview
Content Tools
{"serverDuration": 68, "requestCorrelationId": "a33cbeb3497bbe5a"}