Question: I typed this into Google, but I only found how-tos in C++.

How can I do it in C?

Answer: 
Plain old C doesn't actually support exceptions natively.

You can use alternative error handling strategies, such as:

* returning an error code
* returning `FALSE` and using a `last_error` variable or function.

See <http://en.wikibooks.org/wiki/C_Programming/Error_handling>.
On Windows with **Microsoft Visual C++** (MSVC) there's `__try ... __except ...`, but it's really horrible and you don't want to use it if you can possibly avoid it. Better to say that there are no exceptions.