# format_job_get

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

```c
static char * format_job_get(struct format_expand_state *, const char *)
```

## Parameters

- `es` (`struct format_expand_state *`)
- `cmd` (`const char *`)

## Called by

- [`format_expand1`](/en/tmux/3.7c/reference/c-function-format-c-format_expand1/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L5703)

## Calls

- [`format_expand1`](/en/tmux/3.7c/reference/c-function-format-c-format_expand1/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L408)
- [`job_free`](/en/tmux/3.7c/reference/c-function-job_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L418)
- [`job_run`](/en/tmux/3.7c/reference/c-function-job_run/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L420)
- [`xasprintf`](/en/tmux/3.7c/reference/c-function-xasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L425)
- [`xcalloc`](/en/tmux/3.7c/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L397)
- [`xmalloc`](/en/tmux/3.7c/reference/c-function-xmalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L390)
- [`xstrdup`](/en/tmux/3.7c/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L400)

## Other function references

- [`format_copy_state`](/en/tmux/3.7c/reference/c-function-format-c-format_copy_state/) (function)
- [`format_job_complete`](/en/tmux/3.7c/reference/c-function-format-c-format_job_complete/) (function)
- [`format_job_update`](/en/tmux/3.7c/reference/c-function-format-c-format_job_update/) (function)
- [`server_client_get_cwd`](/en/tmux/3.7c/reference/c-function-server_client_get_cwd/) (function)

## Referenced declarations

- [`format_job.client`](/en/tmux/3.7c/reference/c-struct-format_job-client/) (attribute)
- [`format_tree.client`](/en/tmux/3.7c/reference/c-struct-format_tree-client/) (attribute)
- [`format_job.cmd`](/en/tmux/3.7c/reference/c-struct-format_job-cmd/) (attribute)
- [`format_job.expanded`](/en/tmux/3.7c/reference/c-struct-format_job-expanded/) (attribute)
- [`format_expand_state.flags`](/en/tmux/3.7c/reference/c-struct-format_expand_state-flags/) (attribute)
- [`format_tree.flags`](/en/tmux/3.7c/reference/c-struct-format_tree-flags/) (attribute)
- [`FORMAT_EXPAND_NOJOBS`](/en/tmux/3.7c/reference/c-define-format-c-format_expand_nojobs/) (constant)
- [`format_expand_state`](/en/tmux/3.7c/reference/c-struct-format_expand_state/) (struct)
- [`FORMAT_EXPAND_TIME`](/en/tmux/3.7c/reference/c-define-format-c-format_expand_time/) (constant)
- [`FORMAT_FORCE`](/en/tmux/3.7c/reference/c-define-tmux-h-format_force/) (constant)
- [`format_jobs`](/en/tmux/3.7c/reference/c-variable-format-c-format_jobs/) (attribute)
- [`FORMAT_STATUS`](/en/tmux/3.7c/reference/c-define-tmux-h-format_status/) (constant)
- [`format_expand_state.ft`](/en/tmux/3.7c/reference/c-struct-format_expand_state-ft/) (attribute)
- [`format_job.job`](/en/tmux/3.7c/reference/c-struct-format_job-job/) (attribute)
- [`JOB_NOWAIT`](/en/tmux/3.7c/reference/c-define-tmux-h-job_nowait/) (constant)
- [`client.jobs`](/en/tmux/3.7c/reference/c-struct-client-jobs/) (attribute)
- [`format_job.last`](/en/tmux/3.7c/reference/c-struct-format_job-last/) (attribute)
- [`format_job.out`](/en/tmux/3.7c/reference/c-struct-format_job-out/) (attribute)
- [`format_job.status`](/en/tmux/3.7c/reference/c-struct-format_job-status/) (attribute)
- [`format_job.tag`](/en/tmux/3.7c/reference/c-struct-format_job-tag/) (attribute)
- [`format_tree.tag`](/en/tmux/3.7c/reference/c-struct-format_tree-tag/) (attribute)
- [`format_expand_state.time`](/en/tmux/3.7c/reference/c-struct-format_expand_state-time/) (attribute)
- [`format_job.updated`](/en/tmux/3.7c/reference/c-struct-format_job-updated/) (attribute)
