FreeBSD/cddl/contrib/opensolaris/lib/libctf/common/ctf_lib.c
/*
 * Set the CTF library client version to the specified version.  If version is
 * zero, we just return the default library version number.
 */
Set the CTF library client version to the specified version.  If version is
zero, we just return the default library version number.
Set the CTF library client version to the specified version . If version is zero we just return the default library version number .
int
ctf_version(int version)
{
	if (version < 0) {
		errno = EINVAL;
		return (-1);
	}
	if (version > 0) {
		if (version > CTF_VERSION) {
			errno = ENOTSUP;
			return (-1);
		}
		ctf_dprintf("ctf_version: client using version %d\n", version);
		_libctf_version = version;
	}
	return (_libctf_version);
}
int ctf_version ( int version ) { if ( version < 0 ) { errno = EINVAL ; return ( -1 ) ; } if ( version > 0 ) { if ( version > CTF_VERSION ) { errno = ENOTSUP ; return ( -1 ) ; } ctf_dprintf ( " \n " , version ) ; _libctf_version = version ; } return ( _libctf_version ) ; }
Set the CTF library client version to the specified version.
Set the CTF library client version to the specified version .