tttk_op_string(3)
tttk_op_string(3) C LIBRARY FUNCTIONS tttk_op_string(3)
NAME
tttk_op_string - map a ToolTalk op code to a string
SYNOPSIS
#include <Tt/tttk.h>
char *tttk_op_string(Tttk_op opcode);
DESCRIPTION
The tttk_op_string() function returns a string containing
the op for opcode.
RETURN VALUE
Upon successful completion, the tttk_op_string() function
returns a string that can be freed using tt_free(3); other-
wise, it returns NULL.
APPLICATION USAGE
The distinctions in the Tttk_op enumerated type are for pro-
grammer convenience, and elements of Tttk_op do not neces-
sarily map one-to-one with op strings, since ToolTalk allows
ops to be overloaded. For example, TTME_EDIT and
TTME_COMPOSE are overloaded on the same op (Edit), and the
messages only vary by the Tt_mode of the first argument.
SEE ALSO
Tttttk(5), tt_message_op(3), tt_free(3).
Unix System LaboratorLast change: 11 May 1994 1
Man(1) output converted with
man2html