Languages

Menu
Sites
Language
how can I use try-catch exception in .c source file?

Hello,

 

I don't exactly know whether the try-catch exception has been supposed at .c source file or not.

If possible, please, let me know how to use it.

 

Thank you.

Edited by: na on 21 Jan, 2018

Responses

1 Replies
K Johnson

C itself doesn't support exceptions but you can use setjmp and longjmp calls. Please go through the answer in this link.