Norbert Koch wrote:
No, you've got it backwards. If anything, you'd convert mbstowcs and do
wcslen. wide strings are of fixed width so wcslen is extremely to
implement. it doesn't surprise me at all that it's a macro.
I can do a configure check for wcslen et al and include wchar.h [this is
supposed to be standard] if so; if not, i emulate them. i can always
add a check for wchar.h as well if some extremely broken system comes up
that has wcslen but no wchar.h.
Maybe wcslen is a macro which expands to these two function calls and
thus, lucky us, the code works... ahem, guesswork.
norbert.