Retrieve a data server variable
#include <ds.h>
int ds_get( ds_t dsdes,
const char * variable_name,
const char * variable_data,
size_t data_len );
ds3r.lib, ds3s.lib
The ds_get() function retrieves the data corresponding to variable_name from the data server dsdes, and places it in the buffer pointed to by variable_data. The data_len argument is the size of variable_data.
The amount of data written to the buffer variable_data, or -1 if an error occurs (errno is set).
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | Yes |
| Thread | Yes |