MCPcopy Create free account
hub / github.com/ElementsProject/lightning / cmp_release_version

Function cmp_release_version

common/version.c:30–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30static bool cmp_release_version(const char *version) {
31 if (version[0] != 'v')
32 return false;
33 return strspn(version+1, ".0123456789") == strlen(version+1);
34}
35
36/* Released versions are of form v[year].[month]?(.patch)* */
37bool is_released_version(void)

Callers 2

is_released_versionFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by 1

mainFunction · 0.68