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

Function warn

ccan/ccan/err/err.c:43–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43void warn(const char *fmt, ...)
44{
45 int err_errno = errno;
46 va_list ap;
47
48 fprintf(stderr, "%s: ", progname);
49 va_start(ap, fmt);
50 vfprintf(stderr, fmt, ap);
51 va_end(ap);
52 fprintf(stderr, ": %s\n", strerror(err_errno));
53}
54
55void warnx(const char *fmt, ...)
56{

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by 1

mainFunction · 0.68