Skip to content

Instantly share code, notes, and snippets.

@adisuciu
Created August 9, 2023 10:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adisuciu/01627032c4285c4f01d880a45ddaa78a to your computer and use it in GitHub Desktop.
Save adisuciu/01627032c4285c4f01d880a45ddaa78a to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <iio.h>
int main() {
unsigned int major;
unsigned int minor;
char git_tag[8];
iio_library_get_version(&major, &minor, git_tag);
printf("libiio version: %d.%d - %s \n", major,minor,git_tag);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment