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

Function register_error_str_vformat

lib/hidapi/mac/hid.c:246–252  ·  view source on GitHub ↗

Similar 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

244
245/* Similar to register_error_str, but allows passing a format string with va_list args into this function. */
246static void register_error_str_vformat(wchar_t **error_str, const char *format, va_list args)
247{
248 char msg[1024];
249 vsnprintf(msg, sizeof(msg), format, args);
250
251 register_error_str(error_str, msg);
252}
253
254/* Set the last global error to be reported by hid_error(NULL).
255 * 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