bus error in strsep
Maksim Yevmenkin
maksim.yevmenkin at savvis.net
Wed Jul 6 19:10:40 GMT 2005
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("whats:your:name:buddy?");
>
>> (void*)mystrsep(&c, ":");
>> }
>>
>
> and it should work.
>
> thanks,
> max
>
More information about the freebsd-hackers
mailing list