# options_from_string

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L1098
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-options_from_string/

```c
int options_from_string(struct options *oo, const struct options_table_entry *oe, const char *name, const char *value, int append, char **cause)
```

## Parameters

- `oo` (`struct options *`)
- `oe` (`const struct options_table_entry *`)
- `name` (`const char *`)
- `value` (`const char *`)
- `append` (`int`)
- `cause` (`char **`)

## Called by

- [`cmd_set_option_exec`](/en/tmux/3.7c/reference/c-function-cmd-set-option-c-cmd_set_option_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-set-option.c#L195)
- [`window_customize_set_option_callback`](/en/tmux/3.7c/reference/c-function-window-customize-c-window_customize_set_option_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L1011)

## Calls

- [`cmd_parse_from_string`](/en/tmux/3.7c/reference/c-function-cmd_parse_from_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L1165)
- [`key_string_lookup_string`](/en/tmux/3.7c/reference/c-function-key_string_lookup_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L1146)
- [`options_from_string_check`](/en/tmux/3.7c/reference/c-function-options-c-options_from_string_check/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L1130)
- [`options_from_string_choice`](/en/tmux/3.7c/reference/c-function-options-c-options_from_string_choice/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L1163)
- [`options_from_string_flag`](/en/tmux/3.7c/reference/c-function-options-c-options_from_string_flag/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L1161)
- [`options_get_string`](/en/tmux/3.7c/reference/c-function-options_get_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L1129)
- [`options_set_command`](/en/tmux/3.7c/reference/c-function-options_set_command/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L1171)
- [`options_set_number`](/en/tmux/3.7c/reference/c-function-options_set_number/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L1143)
- [`options_set_string`](/en/tmux/3.7c/reference/c-function-options_set_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L1127)
- [`strtonum`](/en/tmux/3.7c/reference/c-function-strtonum/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L1138)
- [`xasprintf`](/en/tmux/3.7c/reference/c-function-xasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L1112)
- [`xstrdup`](/en/tmux/3.7c/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L1126)

## Other function references

- [`colour_fromstring`](/en/tmux/3.7c/reference/c-function-colour_fromstring/) (function)

## Referenced declarations

- [`CMD_PARSE_ERROR`](/en/tmux/3.7c/reference/c-enum-cmd_parse_status-cmd_parse_error/) (constant)
- [`CMD_PARSE_SUCCESS`](/en/tmux/3.7c/reference/c-enum-cmd_parse_status-cmd_parse_success/) (constant)
- [`cmd_parse_result.cmdlist`](/en/tmux/3.7c/reference/c-struct-cmd_parse_result-cmdlist/) (attribute)
- [`cmd_parse_result.error`](/en/tmux/3.7c/reference/c-struct-cmd_parse_result-error/) (attribute)
- [`KEYC_UNKNOWN`](/en/tmux/3.7c/reference/c-enum-tmux-h-332237342172367247102064023371112372044056265234-keyc_unknown/) (constant)
- [`options_table_entry.maximum`](/en/tmux/3.7c/reference/c-struct-options_table_entry-maximum/) (attribute)
- [`options_table_entry.minimum`](/en/tmux/3.7c/reference/c-struct-options_table_entry-minimum/) (attribute)
- [`options`](/en/tmux/3.7c/reference/c-struct-options/) (struct)
- [`OPTIONS_TABLE_CHOICE`](/en/tmux/3.7c/reference/c-enum-options_table_type-options_table_choice/) (constant)
- [`OPTIONS_TABLE_COLOUR`](/en/tmux/3.7c/reference/c-enum-options_table_type-options_table_colour/) (constant)
- [`OPTIONS_TABLE_COMMAND`](/en/tmux/3.7c/reference/c-enum-options_table_type-options_table_command/) (constant)
- [`options_table_entry`](/en/tmux/3.7c/reference/c-struct-options_table_entry/) (struct)
- [`OPTIONS_TABLE_FLAG`](/en/tmux/3.7c/reference/c-enum-options_table_type-options_table_flag/) (constant)
- [`OPTIONS_TABLE_KEY`](/en/tmux/3.7c/reference/c-enum-options_table_type-options_table_key/) (constant)
- [`OPTIONS_TABLE_NUMBER`](/en/tmux/3.7c/reference/c-enum-options_table_type-options_table_number/) (constant)
- [`OPTIONS_TABLE_STRING`](/en/tmux/3.7c/reference/c-enum-options_table_type-options_table_string/) (constant)
- [`cmd_parse_result.status`](/en/tmux/3.7c/reference/c-struct-cmd_parse_result-status/) (attribute)
- [`options_table_entry.type`](/en/tmux/3.7c/reference/c-struct-options_table_entry-type/) (attribute)
