VMS Help  —  CRTL  decc$feature_get
    Calls decc$feature_get_value with a character-string feature
    name, rather than an index.

    Format

      #include  <unixlib.h>

      int decc$feature_get  (const char *name, int mode);

1  –  Argument

 name

    Pointer to a character string passed as a name in the list of
    supported features.

 mode

    An integer indicating which feature value to return. The values
    for mode are:

       __FEATURE_MODE_DEFVAL        Default value
       __FEATURE_MODE_CURVAL        Current value
       __FEATURE_MODE_MINVAL        Minimum value
       __FEATURE_MODE_MAXVAL        Maximum value
       __FEATURE_MODE_INIT_STATE    Initialization state

2  –  Description

    The decc$feature_get function allows you to call the
    decc$feature_get_value function with a character-string feature
    name, rather than an index into an internal C RTL table.

    On error, -1 is returned and errno is set to indicate the error.

    See also decc$feature_get_value, decc$feature_get_index,
    decc$feature_get_name, decc$feature_set, decc$feature_set_value,
    decc$feature_show, and decc$feature_show_all.

3  –  Return Values

    n                  An integer corresponding to the specified name
                       and mode arguments.
    -1                 Indicates an error; errno is set.
Close Help