MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / register_error_str_vformat

Function register_error_str_vformat

lib/hidapi/linux/hid.c:137–143  ·  view source on GitHub ↗

Semilar to register_error_str, but allows passing a format string with va_list args into this function. */

Source from the content-addressed store, hash-verified

135
136/* Semilar to register_error_str, but allows passing a format string with va_list args into this function. */
137static void register_error_str_vformat(wchar_t **error_str, const char *format, va_list args)
138{
139 char msg[256];
140 vsnprintf(msg, sizeof(msg), format, args);
141
142 register_error_str(error_str, msg);
143}
144
145/* Set the last global error to be reported by hid_error(NULL).
146 * The given error message will be copied (and decoded according to the

Callers 2

Calls 1

register_error_strFunction · 0.70

Tested by

no test coverage detected