Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

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

tttk_op_string(3)             ToolTalk 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); otherwise, it returns NULL.

APPLICATION USAGE
       The distinctions in the Tttk_op enumerated type are for programmer con-
       venience, and elements of Tttk_op do  not  necessarily  map  one-to-one
       with op strings, since ToolTalk allows ops to be overloaded.  For exam-
       ple, 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.


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+------------------+
       |ATTRIBUTE TYPE | ATTRIBUTE VALUE  |
       +---------------+------------------+
       |Availability   | library/tooltalk |
       +---------------+------------------+
       |Stability      | Committed        |
       +---------------+------------------+

SEE ALSO
       tttk(5), tt_message_op(3), tt_free(3).




ToolTalk 1.3                     1 March 1996                tttk_op_string(3)