Make use of EXIT_SUCCESS and EXIT_FAILURE from stdlib.h. The previous approach of returning a value from UA_StatusCode was often broken as an exit code can (portably) only be between 0 and 125.
For consistency we recommend using non-amalgamation install, thus the examples should also use the non-amalgamated headers.