Applications_GetOsVersion function

Header: #include <applibs/applications.h>

Gets the human-readable string of the currently running OS version. This string is based on the year and month of the release and may include additional characters related to updates, hotfixes, or security patches that deviate from the initial release of the same month and year.

int Applications_GetOsVersion(Applications_OsVersion *outVersion);

Errors

Returns 0 if an error is encountered and sets errno to the error value.

  • EFAULT: The provided parameter is NULL.

Any other errno may also be specified; such errors aren't deterministic and there's no guarantee that the same behavior will be retained through system updates.

Return value

Returns 0 for success, -1 for failure, in which case errno is set to the error value.