This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
attribute format printf and wchar_t??
- From: Jim Marshall <jim dot marshall at wbemsolutions dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 12 Oct 2007 13:07:17 -0400
- Subject: 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