]> git.ipfire.org Git - thirdparty/bird.git/commit
Lib: recursive printf
authorJan Maria Matejka <mq@ucw.cz>
Wed, 22 Aug 2018 12:58:53 +0000 (14:58 +0200)
committerJan Maria Matejka <mq@ucw.cz>
Wed, 22 Aug 2018 13:14:06 +0000 (15:14 +0200)
commit64c5ad58d276d8a0463aa9ad2b34f75b7d1f4108
tree522a2ae0f16d4606d1f81021d42f9644060f5277
parent765f400f6b7ac054ddb4fcc4f5bec58f94d1bdd4
Lib: recursive printf

Use like this:

void func(const char *msg, va_list args) {
  ...
  bvsnprintf(buf, len, "file %s, line %d: %V (foo %d, bar %d)", file, line, msg, &args, foo, bar);
  ...
}
lib/printf.c