#include <strings.h>
#include <iostream>
#include <string>
#include <cstring>
using namespace std;
int main()
{
string s = "test";
if(strcasecmp(s, "TEST"))
cout << "equals"<< endl;
return 0;
}
Help needed on how to use strcasecmp, when i tried to compile, the compiler keep shows an error message
error: cannot convert ‘std::string {aka std::basic_string}’ to ‘const char*’ for argument ‘1’ to ‘int strcasecmp(const char*, const char*)