C++ Issue with const char * on strchr

Michael Schwendt mschwendt at gmail.com
Wed Mar 11 07:17:10 UTC 2009


On Tue, 10 Mar 2009 13:36:07 -0700, Conrad wrote:

> My understanding is you can do something like this:
> 
>   const char *str1, str2;
>   str2 = strchr(str1, 'a');
> 
> But str2 must be a const char *.
> 
> Maybe I am wrong, I am not very familiar with C++.

In your example, str2 is not a pointer, though. ;)




More information about the fedora-devel-list mailing list