SyntaxFix
Write A Post
Hire A Developer
Questions
If you're using old, C-style string instead of the newer, STL-style strings, there's the strlen function in the C run time library:
strlen
const char* p = "Hello"; size_t n = strlen(p);