gclib  2.0.8
Communications API for Galil controllers and PLCs

◆ GError()

void GCALL GError ( GReturn  rc,
GCStringOut  error,
GSize  error_len 
)

Provides a human-readable description string for return codes.

Parameters
rcThe return code to lookup.
errorThe buffer to fill with the error text. Buffer will be null terminated, even if the data must be truncated to do so.
error_lenThe length of the error buffer.

See x_examples.cpp for an example.

Definition at line 459 of file gclibo.c.

References G_NO_ERROR.