upscli_str_contains_token - Man Page

Verify that an unique token is present in the string

Synopsis

        #include <upsclient.h>

        int     upscli_str_contains_token(const char *string, const char *token);

Description

The upscli_str_contains_token() function takes the pointer tgt to a caller-provided const char * buffer, comprised of unique tokens separated by single space characters (ASCII 0x20), and the pointer token to a presumed-contiguous token value that should be found in the tgt buffer.

Return Value

The upscli_str_contains_token() function returns a numeric code:

See Also

upscli_str_add_unique_token(3)

Referenced By

upsclient(3), upscli_str_add_unique_token(3).

04/22/2025 Network UPS Tools 2.8.3 NUT Manual