TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
ASML C Coding Standard
Search

Rule:  7.13.aChecked automatically with code checker

Synopsis:The setjmp() function and its counterpart longjmp() shall not be used.
Language:C
Severity Level:3
Category:Library


Description:

Justification

The use of longjmp() results in unstructured code.

Example

#include <setjmp.h>
jmp_buf env;
if (setjmp(env) != 0) /* WRONG */
{
   longjump(env); /* WRONG */
}