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

  1. err_buf: error message string buffer. (required size: ONIG_MAX_ERROR_MESSAGE_LEN)
  2. err_code: error code returned by other API functions.
  3. err_info (optional): error info returned by onig_new().