We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3425db0 commit e716181Copy full SHA for e716181
hidapi/hidapi.h
@@ -379,14 +379,10 @@ extern "C" {
379
380
This function is intended for logging/debugging purposes.
381
382
- This function guarantees to never return NULL.
+ This function guarantees to never return NULL for a valid @ref dev.
383
If there was no error in the last call to hid_read/hid_read_error -
384
the returned string clearly indicates that.
385
386
- Any HIDAPI function that can explicitly indicate an execution failure
387
- (e.g. by an error code, or by returning NULL) - may set the error string,
388
- to be returned by this function.
389
-
390
Strings returned from hid_read_error() must not be freed by the user,
391
i.e. owned by HIDAPI library.
392
Device-specific error string may remain allocated at most until hid_close() is called.
0 commit comments