gclib  1.36.3
Communications API for Galil controllers and PLCs

◆ GProgramUpload()

GCLIB_DLL_EXPORTED GReturn GCALL GProgramUpload ( GCon  g,
GBufOut  buffer,
GSize  buffer_len 

Uploads a program from the controller's program buffer.

gConnection's handle.
bufferBuffer to receive the controller's program. The data will be null terminated unless function returns G_BAD_LOST_DATA due to the buffer being too small to hold the data.
buffer_lenThe length of the receive buffer.
The success status or error code of the function. See gclib_errors.h for possible values.

See x_programs.cpp for an example.

Referenced by GProgramUploadFile().