[Discuss] 'C' string tokenizer for those who hate strtok
Paul Nienaber
phox at phox.ca
Thu Jun 29 09:06:18 PDT 2006
Buffer from nowhere? POSIX has mandated strtok_r() for like... ever.
strtok() _is_ stupid. It's also about one more line to use strchr() or
one can use BSD strsep(), or whatever...
~p
pw wrote:
> Hello,
>
> I have posted some 'C' code for making tokens
> from delimited strings.
>
> Those who have experienced the ravages
> of strtok inconsistancies will appreciate
> the simple linked list mechanism, rather
> than the buffer from nowhere approach.
>
> GPL source and auto tools build available at:
>
> http://www3.telus.net/amphora/downloads
>
>
> Peter
> _______________________________________________
> Discuss mailing list
> Discuss at vlug.org
> http://ladybug.vlug.org/cgi-bin/mailman/listinfo/discuss
>
More information about the Discuss
mailing list