upscli_splitname (3) Linux Manual Page
upscli_splitname – split a UPS definition into its components Synopsis #include <upsclient.h> int upscli_splitname(const char *buf, char **upsname, char **hostname, int *port) Description The upscli_splitname() function takes a pointer to the raw UPS definition buf and returns pointers to dynamically allocated memory in upsname and hostname. It also copies the port number into port. Formatting…
