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

Function opt_show_autobool

lightningd/options.c:134–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134bool opt_show_autobool(char *buf, size_t len, const enum opt_autobool *b)
135{
136 switch (*b) {
137 case OPT_AUTOBOOL_TRUE:
138 strncpy(buf, "true", len);
139 return true;
140 case OPT_AUTOBOOL_FALSE:
141 strncpy(buf, "false", len);
142 return true;
143 case OPT_AUTOBOOL_AUTO:
144 strncpy(buf, "auto", len);
145 return true;
146 }
147 abort();
148}
149
150static char *opt_set_mode(const char *arg, mode_t *m)
151{

Callers

nothing calls this directly

Calls 1

abortFunction · 0.85

Tested by

no test coverage detected