Skip to Main content Skip to Navigation
Conference papers

C language mechanism for error handling and deferred cleanup

Jens Gustedt 1 Robert Seacord 2
1 CAMUS - Compilation pour les Architectures MUlti-coeurS
Inria Nancy - Grand Est, ICube - Laboratoire des sciences de l'ingénieur, de l'informatique et de l'imagerie
Abstract : This paper introduces the implementation of a C language mechanism for error handling and deferred cleanup adapted from similar features in the Go programming language. This mechanism improves the proximity, visibility, maintainability, robustness, and security of cleanup and error handling over existing language features. This feature is under consideration for inclusion in the C Standard. The library implementation of the features described by this paper is publicly available under an Open Source License at
Document type :
Conference papers
Complete list of metadata
Contributor : Jens Gustedt Connect in order to contact the contributor
Submitted on : Saturday, December 12, 2020 - 10:50:33 AM
Last modification on : Thursday, December 2, 2021 - 3:16:56 AM
Long-term archiving on: : Saturday, March 13, 2021 - 6:22:46 PM


Files produced by the author(s)



Jens Gustedt, Robert Seacord. C language mechanism for error handling and deferred cleanup. SAC 2021 -The 36th ACM/SIGAPP Symposium on Applied Computing, Mar 2021, Virtual, South Korea. ⟨10.1145/3412841.3442116⟩. ⟨hal-03059076⟩



Les métriques sont temporairement indisponibles