]> git.kaiwu.me - klib.git/commit
kstring: Add printf format attribute to kvsprintf() and ksprintf()
authorYorhel <git@yorhel.nl>
Tue, 7 May 2013 10:03:48 +0000 (12:03 +0200)
committerYorhel <git@yorhel.nl>
Tue, 7 May 2013 10:05:25 +0000 (12:05 +0200)
commit9f49ae119cec435ac380b6a04dcfdaa7f5848ed6
treeb2665aa568ac8b331b3d8cc4795ca4e946dbfecf
parente44075f866b5f8f7c002904271ccfc8b3bc27484
kstring: Add printf format attribute to kvsprintf() and ksprintf()

This allows compile-time detection of format-string related bugs.
Although the macros only check for the GCC version, clang (and perhaps
other compilers too) have these macros defined and can recognize
the formatting attributes as well.
kstring.h