// here i'm getting and reading text from the user
bzero(buffer, 1024);
read(m_Socket, buffer, 1023);
string inputText;
inputText = string(buffer);
// here i'm converting to string btw is it necessary to convert?
string userCommand = inputText.c_str();
strcpy(buffer, inputText.c_str());
write(m_Socket, buffer, sizeof(buffer));
// And this part is not working, i have done everything that was necessary for it
if (userCommand.compare("help")){
inputText += "You typed help\n";
cout<< "Help"<<endl;
} else{
cout<< "Not Help"<<endl;
}
Anyone can point out the mistake and provide some hint?