gclib  1.36.3
Communications API for Galil controllers and PLCs

◆ GVersion()

GReturn GCALL GVersion ( GCStringOut  ver,
GSize  ver_len 
)

Uses GUtility(), G_UTIL_VERSION and G_UTIL_GCAPS_VERSION to provide the library and gcaps version numbers.

Parameters
verBuffer to hold the output string. Buffer will be null terminated, even if the data must be truncated to do so.
ver_lenLength of buffer.
Returns
The success status or error code of the function. See gclib_errors.h for possible values.

The version number of gclib is provided first. If the gcaps server can be found, its version will be provided after a space.

Example with gcaps version.

154.190.329 1.0.0.82

Example with gclib version only.

154.190.329
Note
GVersion() will take up to 1 second to look for gcaps.

See x_examples.cpp for an example.

Definition at line 29 of file gclibo.c.

References G_NO_ERROR, G_UTIL_GCAPS_VERSION, G_UTIL_VERSION, and GUtility().