Talk:String Byte Length: Difference between revisions
Content added Content deleted
(deleted bad C wchar_t example) |
(also deleted the erroneous c++ wchar string length example) |
||
Line 1: | Line 1: | ||
The C |
The C and C++ examples of finding the length of a string of wide characters (wchar_t) were just plain wrong, so I deleted them. Regardless of string length, the examples would always show 16 because it was computing against the length of a ''pointer'' to a wchar_t, rather than the length of the string. —[[User:139.85.252.186|139.85.252.186]] 17:00, 23 April 2007 (EDT) |
Revision as of 21:00, 23 April 2007
The C and C++ examples of finding the length of a string of wide characters (wchar_t) were just plain wrong, so I deleted them. Regardless of string length, the examples would always show 16 because it was computing against the length of a pointer to a wchar_t, rather than the length of the string. —139.85.252.186 17:00, 23 April 2007 (EDT)