Trf_SetOption(3)

Trf_SetOption3

Interface to procedures to define the value of an option.

Usage

#include <transform.h>

int Trf_SetOption
(

Trf_Options options,

Tcl_Interp *interp,

const char *optname,

const char *optvalue,

ClientData clientData
);

Parameters

Trf_Options options

Container to place the value into.

Tcl_Interp *interp

Interpreter for error messages (NULL possible).

const char *optname

Name of option to define.

const char *optvalue

Value to set into the container.

ClientData clientData

Arbitrary information, as defined in Trf_TypeDefinition.clientData.

Overview

The procedure takes the specified optionname (rejecting illegal ones) and places the given optionvalue into the container. All necessary conversions from a string to the required type should be done here. Return value is a standard tcl error code. In case of failure and interp not NULL an error message should be left in the result area of the specified interpreter.

Releases

Unchanged in 9 releases since Debian 5.0 (Lenny).

  1. 5.0–13

From tcl-trf-doc 2.1.4-dfsg3-8 in Debian 13 (Trixie). Parsed by carta from the page's man source.