Use -Wformat for own functions?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello all!

I've written my own version of sprintf:
my_sprintf(MyBuffer, const char *format, ...)
I wonder if there's a way to use -Wformat, or any functionality of the compiler, to make sure that the number of arguments supplied (the ... ) are correct and have types appropriate to the format string specified.
-Wformat has the functionality I want, but it only checks the printf and scanf functions in stdio.

Thanks for any hints or help.
/Bo


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux