Re: C++ Issue with const char * on strchr

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday 11 March 2009 12:17:10 am Michael Schwendt wrote:
> 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. ;)

Sorry, yes, that should be *str2 in the declaration :). My mistake.

-- 
Conrad Meyer <konrad@xxxxxxxxxx>

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux