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

Function PRINTF_FMT

ccan/ccan/compiler/test/compile_fail-printf.c:3–24  ·  view source on GitHub ↗
(2,3)

Source from the content-addressed store, hash-verified

1#include <ccan/compiler/compiler.h>
2
3static void PRINTF_FMT(2,3) my_printf(int x, const char *fmt, ...)
4{
5 (void)x;
6 (void)fmt;
7}
8
9int main(void)
10{
11 unsigned int i = 0;
12
13 my_printf(1, "Not a pointer "
14#ifdef FAIL
15 "%p",
16#if !HAVE_ATTRIBUTE_PRINTF
17#error "Unfortunately we don't fail if !HAVE_ATTRIBUTE_PRINTF."
18#endif
19#else
20 "%i",
21#endif
22 i);
23 return 0;
24}

Callers 11

websocketd.cFile · 0.50
connectd.cFile · 0.50
json_out.hFile · 0.50
str.hFile · 0.50
bolt11.cFile · 0.50
json_stream.hFile · 0.50
peer_failed.hFile · 0.50
json_command.hFile · 0.50
wire_error.hFile · 0.50
daemon.cFile · 0.50
status.hFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected