| gclib 354 Communications API for Galil controllers and PLCs |

All Data Structures Files Functions Variables Typedefs Macros Pages

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

Provides a human-readable description string for return codes.

Parameters

  rc | The return code to lookup.
  error | The buffer to fill with the error text. Buffer will be null terminated, even if the data must be truncated to do so.
  error_len | The length of the error buffer.

See x_examples.cpp for an example.

Definition at line 290 of file gclibo.c.

References G_ARRAY_NOT_DIMENSIONED, G_BAD_ADDRESS, G_BAD_FILE, G_BAD_FULL_MEMORY, G_BAD_LOST_DATA, G_BAD_RESPONSE_QUESTION_MARK, G_BAD_VALUE_RANGE, G_COMMAND_CALLED_WITH_ILLEGAL_COMMAND, G_DATA_RECORD_ERROR, G_FIRMWARE_LOAD_NOT_SUPPORTED, G_GCAPS_OPEN_ERROR, G_GCLIB_ERROR, G_GCLIB_NON_BLOCKING_READ_EMPTY, G_GCLIB_UTILITY_ERROR, G_GCLIB_UTILITY_IP_TAKEN, G_ILLEGAL_DATA_IN_PROGRAM, G_INVALID_PREPROCESSOR_OPTIONS, G_NO_ERROR, G_OPEN_ERROR, G_TIMEOUT, G_UNABLE_TO_COMPRESS_PROGRAM_TO_FIT, and G_UNSUPPORTED_FUNCTION.