Fix error handling in examples of C API use.
1 file changed