exit method

int exit()

@brief Finalize the HIDAPI library.

This function frees all of the static data associated with HIDAPI. It should be called at the end of execution to avoid memory leaks.

@ingroup API

@returns This function returns 0 on success and -1 on error.

Implementation

int exit() {
  return _exit();
}