MIT Kerberos Documentation

krb5_set_error_message - Set an extended error message for an error code.

void krb5_set_error_message(krb5_context ctx, krb5_error_code code, const char * fmt, ...)
param:

[in] ctx - Library context

[in] code - Error code

[in] fmt - Error string for the error code