Returns an index for accessing feature values. Format #include <unixlib.h> int decc$feature_get_index (char *name);
1 – Argument
name Pointer to a character string passed as a name in the list of supported features.
2 – Description
The decc$feature_get_index function looks up the string passed as name in the list of supported features. If the name is found, decc$feature_get_index returns a (nonnegative) index that can be used to set or retrieve the values for the feature. The comparison for name is case insensitive. On error, -1 is returned and errno is set to indicate the error. See also decc$feature_get, decc$feature_get_value, decc$feature_ get_name, decc$feature_set, decc$feature_set_value, decc$feature_ show, and decc$feature_show_all.
3 – Return Values
n A nonnegative index that can be used to set or retrieve the specified values for the feature. -1 Indicates an error; errno is set.