BloombergLP::bdls::OsUtil::getOsInfo

Load operating system name, version, and patch into the output strings.

Synopsis

Declared in <bdls_osutil.h>

static
int
getOsInfo(
    std::string* osName,
    std::string* osVersion,
    std::string* osPatch);

Description

Same as the overload taking bsl::string *.

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
osNamereceives the operating system name
osVersionreceives the operating system version
osPatchreceives the operating system patch level