SHTK_LIST_CONTAINS(3)
SHTK_LIST_CONTAINS(3) Library Functions Manual SHTK_LIST_CONTAINS(3)

shtk_list_containsChecks if an item appears in a list

shtk_import list

shtk_list_contains item [list_value1 .. list_valueN]

The shtk_list_contains function searches for item in the list provided by the arguments list_value1 to list_valueN. Each list value must be provided as a separate positional parameter.

shtk_list_contains returns 0 (true) if item appears in the list and 1 (false) if it does not.

shtk(3), shtk_list(3)

shtk_list_contains first appeared in shtk 1.0.

November 7, 2014 Debian