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

How can I do it in C?

Answer: 
There are no exceptions in C. In C the errors are notified by the returned value of the function, the exit value of the process, signals to the process ([Program Error Signals (GNU libc)](http://www.gnu.org/software/libc/manual/html_node/Program-Error-Signals.html)) or the CPU hardware interruption (or other notification error form the CPU if there is)([How processor handles the case of division by zero](https://stackoverflow.com/questions/23878400/how-processor-handles-case-of-division-by-zero)).

Exceptions are defined in C++ and other languages though. Exception handling in C++ is specified in the C++ standard "S.15 Exception handling", there is no equivalent section in the C standard.
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>.