This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

attribute format printf and wchar_t??


I have a function like this:

int my_wprintf(int lvl, const wchar_t* fmt, ...);

I would love to utilize __attribute__((format(printf,2,3))) but because the function uses a wchar_t the compiler balks at it:

error: format string argument not a string type

Is there a way to use this with wchar functions?

Thanks


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]