Sunday, 17 May 2015

Linux : Non local goto

In programming goto is used to skip some statements of the code/  to make a loop. If we are setting the label above and calling label  below, then it will act as a loop. But if setting  the label below and calling the label above , so we can skip some staments. This goto local tothe function only. 
   
   Using non-local goto we can jump between functions. Here setting the label is done by using one function setjmp(), calling the label using longjmp().


No comments:

Post a Comment