Symisc Systems

Libcox C/C++ API Reference - Delete a Foreign Command


Star Follow @symisc

Syntax

int libcox_delete_command(libcox *pHandle,const char *zName);

Delete a foreign command.

Description

This routine deletes a previously installed command. That is, any future invocation of the command will throw a call to a unknown command error.


Parameters

pHandle

A pointer to a valid Libcox handle.

zName

A pointer to a null terminated string holding the name of the foreign command to be deleted.


Return value

LIBCOX_OK is returned on success. Any other return value indicates failure (no such command).


See also

libcox_register_command.