RE: Spanish single characters recognized as multi-character

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

 



What happens if you use wprintf instead?

wprintf(L"%d - %c\n", 'ñ', 'ñ');

Although, I don't recall for sure whether the L goes before or after the string constant...

Cheers,
Lyle

-----Original Message-----
From: Salvador Ramirez [mailto:sram@xxxxxxxxxxxxx] 
 --------
#include <stdio.h>
int main(void) {
    printf("%d - %c\n", 'ñ', 'ñ');
}
--------

  if I compile that program I get the following message warning from GCC:

warning: multi-character character constant


[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