libiio  0.8
Library for interfacing with IIO devices
Functions
Top-level functions

Functions

__api void iio_library_get_version (unsigned int *major, unsigned int *minor, char git_tag[8])
 Get the version of the libiio library. More...
 
__api void iio_strerror (int err, char *dst, size_t len)
 Get a string description of an error code. More...
 

Detailed Description

Function Documentation

◆ iio_library_get_version()

__api void iio_library_get_version ( unsigned int *  major,
unsigned int *  minor,
char  git_tag[8] 
)

Get the version of the libiio library.

Parameters
majorA pointer to an unsigned integer (NULL accepted)
minorA pointer to an unsigned integer (NULL accepted)
git_tagA pointer to a 8-characters buffer (NULL accepted)

◆ iio_strerror()

__api void iio_strerror ( int  err,
char *  dst,
size_t  len 
)

Get a string description of an error code.

Parameters
errThe error code
dstA pointer to the memory area where the NULL-terminated string corresponding to the error message will be stored
lenThe available length of the memory area, in bytes