Can anyone explain me where exactly setjmp() and longjmp() functions can be used practically in embedded programming? I know that these are for err
setjmp()
longjmp()
Since you mention embedded, I think it's worth noting a non-use case: when your coding standard prohibit it. For instance MISRA (MISRA-C:2004:Rule 20.7) and JFS (AV Rule 20) : "The setjmp macro and the longjmp function shall not be used."