Symisc Systems

Libcox C/C++ API Reference - Command Name


Star Follow @symisc

Syntax

const char * libcox_command_name(libcox_context *pCtx);


Extract the running command name.

Description

The libcox_command_name() interface returns the name of the running command in the current context.

This routine accepts as its first argument a pointer to a libcox_context which mean that it is designed to be invoked only from a foreign command.

This routine must be called from the same thread in which the application-defined function is running.


Parameters

pCtx

Foreign command call context.


Return value

Name of the current command being executed.


See also

libcox_register_command.