---
name: "JSDriverQueryVersion"
section: "3"
platform: "linux"
package: "libjsw-dev"
version: "1:1.5.5-1+b1"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/JSDriverQueryVersion"
---

# JSDriverQueryVersion(3)

Driver version retrieving

## NAME

JSDriverQueryVersion - Driver version retrieving

## SYNTAX

\#include \<jsw.h\>

int JSDriverQueryVersion(\
\
         js\_data\_struct \**jsd*,\
\
         int \**major\_rtn*,\
\
         int \**minor\_rtn*,\
\
         int \**release\_rtn*\
 )

## ARGUMENTS

- *jsd*

  Specifies the pointer to the joystick data structure, which should have been set up by a prior call to JSInit.

- *major\_rtn*

  Specifies the return for the major version number.

- *minor\_rtn*

  Specifies the return for the minor version number.

- *release\_rtn*

  Specifies the return for the release number.

## DESCRIPTION

The JSDriverQueryVersion function fetches the parsed version number of the joystick driver (not the version of this library).

## RETURN VALUE

The JSDriverVersion function returns 1 on success and 0 on failure.

## SEE ALSO

[JSIntro(3)](/JSIntro/3.md) [JSDriverVersion(3)](/JSDriverVersion/3.md)
