# shz_version_fields

Source: https://sh4zam.com/api/version/shz_version_fields/

```c
void shz_version_fields(shz_version_t version, uint8_t* major, uint16_t* minor, uint8_t* patch);
```

Extracts the individual version component values from a full version.

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `version` | `shz_version_t` |  |
| `major` | `uint8_t *` |  |
| `minor` | `uint16_t *` |  |
| `patch` | `uint8_t *` |  |

## Returns

Nothing (`void`).

## Availability

- **C++ equivalent:** none (call the C function from C++)
- **Type-generic form:** none
- **Back-ends:** SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- **Defined in:** [`sh4zam/shz_version.h:64`](https://github.com/gyrovorbis/sh4zam/blob/ba1e30c88d49df0311870b229e1dd860ef26c477/include/sh4zam/shz_version.h#L64)
- **Module:** [Version](https://sh4zam.com/api/version/), section "Link-Time Utilities"
