Microsoft has deprecated them, so they are deprecated (by Microsoft)
If this were a Microsoft compiler forum, I might agree, but it is a C++ forum and these functions are not deprecated in C++ or C, despite anything Microsoft may have to say about it.
If this were a Microsoft compiler forum, I might agree, but it is a C++ forum and these functions are not deprecated in C++ or C, despite anything Microsoft may have to say about it.
Even in a Microsoft compiler forum I would not agree that the function is depreciated. I think that already many users of the compiler wrote angry letters to Microsoft about this stupidy.
He doesn't know that it's possible to pass in a different string than your control string. Regardless of the length of the control test, the function will STILL work, because it keeps evaluating until it's hit the number of characters defined.
Look again at my post. There should have been 9 steps, because the string passed to srtlen was "exit toll", not "exit". That's not even complete code, because I would actually define it more like this:
He doesn't know that it's possible to pass in a different string than your control string. Regardless of the length of the control test, the function will STILL work, because it keeps evaluating until it's hit the number of characters defined.
And the result will be a program bug.:) One more investigate the example with "exit" and "exit poll" I showed above.