Set a data server variable
#include <ds.h>
int ds_set( ds_t dsdes,
const char* variable_name,
const char* variable_data,
size_t data_len );
The ds_set() function passes the data variable_data to the data server identified by dsdes. The data server stores the data in the variable whose name is given by variable_name, overwriting any existing value.
0 for success, or -1 if an error occurs (errno is set).
| Safety: | |
|---|---|
| Cancellation point | Yes |
| Interrupt handler | No |
| Signal handler | Yes |
| Thread | Yes |