【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.1.2.29 lstrlen
Contents
Description
The lstrlen (alias strlen) function returns the length of a string in bytes.
Syntax
int lstrlen( LPCSTR lpString )
Parameters
- lpString
- [input]Pointer to a null-terminated string.
Return
the length of the string (not including zero termination).
Examples
EX1
void lstrlen_ex1() { string str1 = "Hello World!"; int len = lstrlen(str1); // len is 12 (the length of str1). out_int("The length is ", len); }
Remark
See Also
Header to Include
origin.h