Function

uni_getucdversion

Unicode standard version.

Since v1.0
void uni_getucdversion(
int32_t *major, int32_t *minor, int32_t *patch)

Parameters 🔗

major out

Major version of the Unicode standard.

minor out

Minor version of the Unicode standard.

patch out

Patch version of the Unicode standard.

Discussion 🔗

Writes the major, minor, and patch version of the Unicode Standard to major, minor, and patch, respectively. Null arguments are ignored.

Examples 🔗

This example prints the major, minor, and patch version of the Unicode Standard implemented by the library to stdout.

#include <unicorn.h>
#include <stdio.h>

int main(void)
{
    int32_t major, minor, patch;
    uni_getucdversion(&major, &minor, &patch);
    printf("%d.%d.%d", major, minor, patch);
    return 0;
}