[#BloombergLP-bdls-OsUtil-getOsInfo-0c2]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/OsUtil.adoc[OsUtil]::getOsInfo
:relfileprefix: ../../../
:mrdocs:

Load operating system name, version, and patch into the output strings&period;

== Synopses

Declared in `&lt;bdls&lowbar;osutil&period;h&gt;`

Load operating system name, version, and patch into the output strings&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/bdls/OsUtil/getOsInfo-03.adoc[getOsInfo](
    xref:bsl/string.adoc[bsl::string]* osName,
    xref:bsl/string.adoc[bsl::string]* osVersion,
    xref:bsl/string.adoc[bsl::string]* osPatch);
----

[.small]#xref:BloombergLP/bdls/OsUtil/getOsInfo-03.adoc[_» more&period;&period;&period;_]#

Load operating system name, version, and patch into the output strings&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/bdls/OsUtil/getOsInfo-07.adoc[getOsInfo](
    std::pmr::string* osName,
    std::pmr::string* osVersion,
    std::pmr::string* osPatch);
----

[.small]#xref:BloombergLP/bdls/OsUtil/getOsInfo-07.adoc[_» more&period;&period;&period;_]#

Load operating system name, version, and patch into the output strings&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/bdls/OsUtil/getOsInfo-0c3.adoc[getOsInfo](
    std::string* osName,
    std::string* osVersion,
    std::string* osPatch);
----

[.small]#xref:BloombergLP/bdls/OsUtil/getOsInfo-0c3.adoc[_» more&period;&period;&period;_]#

== Return Value

0 on success, and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *osName*
| receives the operating system name
| *osVersion*
| receives the operating system version
| *osPatch*
| receives the operating system patch level
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
