In <[EMAIL PROTECTED]>, Dimitry Andric <[EMAIL PROTECTED]> typed:
> On 2005-07-06 at 21:41:00 Stefan Sperling wrote:
>
> >> >>char *c = "whats:your:name:buddy?";
> >> made type. that should read "that is read only copy" :)
> > Dark corners of C... So it's my own fault, as usual :)
>
> Actuall
Stefan Sperling wrote:
> On Wed, Jul 06, 2005 at 12:10:23PM -0700, Maksim Yevmenkin wrote:
> > Maksim Yevmenkin wrote:
> > >>char *c = "whats:your:name:buddy?";
> > >
> > > that is not read only copy. you can not write
> > >into it. replace it with
> >
> > made
int main(int argc, char* argv[])
{
char *c = "whats:your:name:buddy?";
that is not read only copy. you can not write
into it. replace it with
char *c = strdup("whats:your:name:buddy?");
Or the following:
char c[] = "whats:your:name:buddy?";
whi
On 2005-07-06 12:08, Maksim Yevmenkin <[EMAIL PROTECTED]> wrote:
> Stefan,
>
> >int main(int argc, char* argv[])
> >{
> > char *c = "whats:your:name:buddy?";
> that is not read only copy. you can not write
> into it. replace it with
>
> char *c = strdup("whats:y
On 2005-07-06 at 21:41:00 Stefan Sperling wrote:
>> >>char *c = "whats:your:name:buddy?";
>> made type. that should read "that is read only copy" :)
> Dark corners of C... So it's my own fault, as usual :)
Actually, this dark corner was enlightened not so long ago. String
constants used to b
On Wed, Jul 06, 2005 at 12:10:23PM -0700, Maksim Yevmenkin wrote:
> Maksim Yevmenkin wrote:
> >>char *c = "whats:your:name:buddy?";
> >
> > that is not read only copy. you can not write
> >into it. replace it with
>
> made type. that should read "that is read o
Maksim Yevmenkin wrote:
Stefan,
int main(int argc, char* argv[])
{
char *c = "whats:your:name:buddy?";
that is not read only copy. you can not write into it.
replace it with
made type. that should read "that is read only copy" :)
char *c = strdup("wh
Stefan,
int main(int argc, char* argv[])
{
char *c = "whats:your:name:buddy?";
that is not read only copy. you can not write
into it. replace it with
char *c = strdup("whats:your:name:buddy?");
(void*)mystrsep(&c, ":");
}
and it should work
8 matches
Mail list logo