On Tue, 05 Jul 2011 20:12:44 +0200, Stefan Sperling wrote: > L"" is C99 notation for wide character string literals. > wchar_t is an int, so a pointer increment will consume 4 bytes, not 1. > L"foobar" results in the byte string: > "f\0\0\0o\0\0\0o\0\0\0b\0\0\0a\0\0\0r\0\0\0\0\0\0\0"
Aha, thanks for clearing that up. On a somewhat related topic, most of the wide character functions are documented in wmemchr(3) which basically just says to see the non-wide manpages for details. It seems much nicer to have separate manuals for the wide functions so they can include examples. Is there interest in breaking those out into separate man pages? - todd