# options_from_string

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L1009
- **Page:** https://libtmux.org/en/tmux/3.2a/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.2a/reference/c-function-cmd-set-option-c-cmd_set_option_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-set-option.c#L179)
- [`window_customize_set_option_callback`](/en/tmux/3.2a/reference/c-function-window-customize-c-window_customize_set_option_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L989)

## Calls

- [`key_string_lookup_string`](/en/tmux/3.2a/reference/c-function-key_string_lookup_string/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L1056)
- [`options_from_string_check`](/en/tmux/3.2a/reference/c-function-options-c-options_from_string_check/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L1040)
- [`options_from_string_choice`](/en/tmux/3.2a/reference/c-function-options-c-options_from_string_choice/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L1073)
- [`options_from_string_flag`](/en/tmux/3.2a/reference/c-function-options-c-options_from_string_flag/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L1071)
- [`options_get_string`](/en/tmux/3.2a/reference/c-function-options_get_string/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L1039)
- [`options_set_number`](/en/tmux/3.2a/reference/c-function-options_set_number/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L1053)
- [`options_set_string`](/en/tmux/3.2a/reference/c-function-options_set_string/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L1037)
- [`strtonum`](/en/tmux/3.2a/reference/c-function-strtonum/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L1048)
- [`xasprintf`](/en/tmux/3.2a/reference/c-function-xasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L1022)
- [`xstrdup`](/en/tmux/3.2a/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L1036)

## Other function references

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

## Referenced declarations

- [`KEYC_UNKNOWN`](/en/tmux/3.2a/reference/c-define-tmux-h-keyc_unknown/) (constant)
- [`options_table_entry.maximum`](/en/tmux/3.2a/reference/c-struct-options_table_entry-maximum/) (attribute)
- [`options_table_entry.minimum`](/en/tmux/3.2a/reference/c-struct-options_table_entry-minimum/) (attribute)
- [`options`](/en/tmux/3.2a/reference/c-struct-options/) (struct)
- [`OPTIONS_TABLE_CHOICE`](/en/tmux/3.2a/reference/c-enum-options_table_type-options_table_choice/) (constant)
- [`OPTIONS_TABLE_COLOUR`](/en/tmux/3.2a/reference/c-enum-options_table_type-options_table_colour/) (constant)
- [`OPTIONS_TABLE_COMMAND`](/en/tmux/3.2a/reference/c-enum-options_table_type-options_table_command/) (constant)
- [`options_table_entry`](/en/tmux/3.2a/reference/c-struct-options_table_entry/) (struct)
- [`OPTIONS_TABLE_FLAG`](/en/tmux/3.2a/reference/c-enum-options_table_type-options_table_flag/) (constant)
- [`OPTIONS_TABLE_KEY`](/en/tmux/3.2a/reference/c-enum-options_table_type-options_table_key/) (constant)
- [`OPTIONS_TABLE_NUMBER`](/en/tmux/3.2a/reference/c-enum-options_table_type-options_table_number/) (constant)
- [`OPTIONS_TABLE_STRING`](/en/tmux/3.2a/reference/c-enum-options_table_type-options_table_string/) (constant)
- [`options_table_entry.type`](/en/tmux/3.2a/reference/c-struct-options_table_entry-type/) (attribute)
