Skip to content

Latest commit

 

History

History
51 lines (37 loc) · 1.22 KB

nng_stat_value.3.adoc

File metadata and controls

51 lines (37 loc) · 1.22 KB

nng_version(3)

NAME

nng_stat_value - get statistic value

SYNOPSIS

#include <nng/nng.h>

typedef struct nng_stat nng_stat;

uint64_t nng_stat_string(nng_stat *stat);

DESCRIPTION

The nng_stat_value() function returns a numeric value for the statistic stat. If the statistic has a boolean value, then zero is returned for false, and one is returned for true. Otherwise, if the string is not of numeric type, then zero is returned. See nng_stat_type(3) for a description of statistic types.

RETURN VALUES

The numeric or boolean value associated with stat.

ERRORS

None.