For some reason, whenever I try to find a slash at the end of a byte string (in this case, base_url which is set to "www.google.com/"), it doesn't seem to want to return that it is or isn't there. However, if I change base_url to something like "www.google.com" where m is the last character, then it finds it just fine.
//in this case, the base_url is "www.google.com/". I also tried to simply put //"www.google.com/" in place of the base_url, just in case.
char * last_char_ptr;
last_char_ptr = strrchr(base_url, '/');
if(last_char_ptr == NULL)
{
cout << "it is null!" << endl;
}
else
{
cout << *last_char_ptr << endl;
}
Whatsup?