ds_clear()

delete a data server variable

Synopsis:

#include <ds.h>

int ds_clear( ds_t dsdes, 
              char *variable_name );

Description:

The ds_clear() function deletes variable_name from the data server identified by dsdes.

Returns:

0
Success.
-1
An error occurred; errno is set.

Errors:

ESRCH
The variable doesn't exist in the data server.

Examples:

See the Writing Data Server Applications chapter.

Classification:

QNX

Safety:
Interrupt handler No
Signal handler Yes, but modifies errno
Thread Yes

See also:

ds_deregister(), ds_flags()