onig_sys::onig_error_code_to_str
[−]
[src]
pub unsafe extern fn onig_error_code_to_str(err_buff: *mut OnigUChar, err_code: c_int, ...) -> c_int
Get error message string. If this function is used for onig_new(), don't call this after the pattern argument of onig_new() is freed.
int onig_error_code_to_str(UChar* err_buf, int err_code, ...)
normal return: error message string length
Arguments
- err_buf: error message string buffer. (required size: ONIG_MAX_ERROR_MESSAGE_LEN)
- err_code: error code returned by other API functions.
- err_info (optional): error info returned by onig_new().