Re: splitting a string and put it into an array
Paul Hsieh wrote:[color=blue]
>
> The C library has a totally worthless complement of string parsing
> functions.[/color]
Oh yes. It's completely impossible to create any application using the
string-parsing utilities in C.
Unless you are a competent programmer.
You know, there are *other* things besides strtok() available. It's
really not that hard to use strchr() and your own state machine for
parsing if strtok() doesn't fit your needs.
Don't get wrong, std::string has a lot of nice features, but to poo-poo
the C string capabilities portrays either a lack of experience, or lack
of skill.
Brian Rodenborn
Paul Hsieh wrote:[color=blue]
>
> The C library has a totally worthless complement of string parsing
> functions.[/color]
Oh yes. It's completely impossible to create any application using the
string-parsing utilities in C.
Unless you are a competent programmer.
You know, there are *other* things besides strtok() available. It's
really not that hard to use strchr() and your own state machine for
parsing if strtok() doesn't fit your needs.
Don't get wrong, std::string has a lot of nice features, but to poo-poo
the C string capabilities portrays either a lack of experience, or lack
of skill.
Brian Rodenborn
Comment