Question: Currently, I'm using the following Command & Target within Selenium IDE to verify the exact text of a meta description

```
 verifyelementpresent :    //meta[@name='description' and @content='description here']

```

I would like to check if the meta description is between 145 and 165 characters to see if it exists. that way when the description changes, the test will only fail if the description is under 145 lines or over 165(which a meta description cant be anyway)

can anyone assist me in writing this expression? assuming some sort of variable is necessary under content to check length of..

Answer: 
> 
> I would assume the following code to print "equal"
> 
> 
> 

That's a wrong assumption. `std::string` copies the literal data to its internal buffer, so the pointers will differ.

In case you wanted to compare the data instead of pointers, don't use `c_str()` at all and compare the `const char*` to the `string` directly - the overloaded comparison operator will do what you expect it to.
`Operator ==` for `char*` pointers compares the pointers themselves, not the strings they point to.

If you want to second-guess std::string, you need to use comparison routines, like following:

```
if (strncmp(buf, same, xx.size())
...

```