1# zx_system_get_version
2
3## NAME
4
5<!-- Updated by update-docs-from-abigen, do not edit. -->
6
7system_get_version - get version string for system
8
9## SYNOPSIS
10
11<!-- Updated by update-docs-from-abigen, do not edit. -->
12
13```
14#include <zircon/syscalls.h>
15
16zx_status_t zx_system_get_version(char* version, size_t version_size);
17```
18
19## DESCRIPTION
20
21`zx_system_get_version()` fills in the given character array with a string
22identifying the version of the Zircon system currently running.
23The provided size must be large enough for the complete string
24including its null terminator.
25
26The version string is guaranteed to never require more than 64 bytes of storage
27including the null terminator.
28
29The first four characters identify the version scheme. An example of the string
30returned is "git-8a07d52603404521038d8866b297f99de36f9162".
31
32## RIGHTS
33
34<!-- Updated by update-docs-from-abigen, do not edit. -->
35
36TODO(ZX-2399)
37
38## RETURN VALUE
39
40`zx_system_get_version()` returns **ZX_OK** on success.
41
42## ERRORS
43
44**ZX_ERR_BUFFER_TOO_SMALL**  *version_size* is too short.
45
46## NOTES
47
48## SEE ALSO
49
50
51