Uploads a program from the controller's program buffer.
- Parameters:
-
| g | Connection's handle. |
| buffer | Buffer 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_len | The length of the receive buffer. |
- Returns:
- 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().