<< hid_close HID Basic's commands hid_init >>

USB Comunication Toolbox for Scilab >> HIDAPI Library > HID Basic's commands > hid_exit

hid_exit

This function frees all of the static data associated with HIDAPI.

Calling Sequence

exit_success = hid_exit()

Parameters

exit_success
: This function returns 0 on success and -1 on error.

Description

frees all of the static data associated with HIDAPI

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

Examples

init_success=hid_init();
if ( init_success < 0 ) then
   disp("unable to initialize the HIDAPI Library");
   return
else
   disp("HIDAPI Library initialized");
end
exit_success=hid_exit();
if ( init_success < 0 ) then
   disp("unable to free static data associated with HIDAPI Library");
   return
else
   disp("HIDAPI Library have been freed all of the static data associated");
end

See Also

Authors

<< hid_close HID Basic's commands hid_init >>