<< bulk_close BULK Basic's commands bulk_init >>

USB Comunication Toolbox for Scilab >> BULK with libusb-1.0 Library > BULK Basic's commands > bulk_exit

bulk_exit

This function frees all of the static data associated with Libusb-1.0.

Calling Sequence

exit_success = bulk_exit()

Parameters

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

Description

frees all of the static data associated with Libusb-1.0

This function frees all of the static data associated with Libusb-1.0. 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 Libusb-1.0 Library");
   return
else
   disp("Libusb-1.0 Library initialized");
end
exit_success=hid_exit();
if ( init_success < 0 ) then
   disp("unable to free static data associated with Libusb-1.0 Library");
   return
else
   disp("Libusb-1.0 Library have been freed all of the static data associated");
end

See Also

Authors

<< bulk_close BULK Basic's commands bulk_init >>