Skip to content

Commit 74c2321

Browse files
wstrlen -> wcslen on strlen... page
The comment states that "wstrlen gives the length of a wide string", but then uses the "wcslen" function. The rest of the page indicates that "wcslen" is the correct function, so I modified the comment to match.
1 parent ee04469 commit 74c2321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/c-runtime-library/reference/strlen-wcslen-mbslen-mbslen-l-mbstrlen-mbstrlen-l.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ int main()
106106
// strlen gives the length of single-byte character string
107107
printf("Length of '%s' : %d\n", str1, strlen(str1) );
108108

109-
// wstrlen gives the length of a wide character string
109+
// wcslen gives the length of a wide character string
110110
wprintf(L"Length of '%s' : %d\n", wstr1, wcslen(wstr1) );
111111

112112
// A multibyte string: [A] [B] [C] [katakana A] [D] [\0]

0 commit comments

Comments
 (0)