String length: Difference between revisions

Content added Content deleted
m (→‎Byte Length: fixed a closing lang tag; planned: a check)
Line 117: Line 117:
return 0;
return 0;
}</lang c>
}</lang>
or by hand:
or by hand:


Line 142: Line 142:
return 0;
return 0;
}</lang>
}</lang>

===Character Length===
===Character Length===
For wide character strings (usually Unicode uniform-width encodings such as UCS-2 or UCS-4):
For wide character strings (usually Unicode uniform-width encodings such as UCS-2 or UCS-4):