Function
uni_getversion
Library version.
Since v1.0
void uni_getversion(
int32_t *major,
int32_t *minor,
int32_t *patch)
Parameters 🔗
| major | out | Major version of the Unicorn library. |
| minor | out | Minor version of the Unicorn library. |
| patch | out | Patch version of the Unicorn library. |
Discussion 🔗
Writes the major, minor, and patch version of the Unicorn library to major, minor, and patch, respectively. Null arguments are ignored.
Examples 🔗
This example prints the major, minor, and patch version of the library to stdout.
#include <unicorn.h>
#include <stdio.h>
int main(void)
{
int32_t major, minor, patch;
uni_getversion(&major, &minor, &patch);
printf("%d.%d.%d", major, minor, patch);
return 0;
}