upscli_disconnect (3) - Linux Man Pages
upscli_disconnect: disconnect from a UPS server
upscli_disconnect - disconnect from a UPS server
int upscli_disconnect(UPSCONN_t *ups);
The upscli_disconnect() function takes the pointer ups to a UPSCONN_t state structure, shuts down the connection to the server, and frees dynamic memory used by the state structure. The UPSCONN_t structure is no longer valid after this function is called.