All I want to do is pass in a char* buffer
and compare that to a literal string "@"
-- why is this so difficult for me.
char* buffer = "@3702";
string b(buffer);
string c("@");
if (strncmp(b.c_str(), c.c_str(), 1) == 0)
{
perror("Buffer malformated!");
return false;
}
What do I not understand about this?
Edit: haaaa, !=
not ==
whoops :)