"Bo Do" <bodo@xxxxxxxx> writes: > 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. Yes. Check __attribute__((printf)). -- Falk