catch in c code