[GRASS5] Re: C string question
Hamish
hamish_nospam at yahoo.com
Wed Jun 22 06:59:30 EDT 2005
> v.labels will produce a string like "upper,left" for the ref= option.
>
> the label file needs a space not a comma, thus we need to do a
> `tr ',' ' '` style cleansing of that.
>
> How is this done? strchr()? code-snippet example?
never mind, I got it. G_parser()'s already doing it for us.
It would be nice if opt->answers[i] had a opt->(int)n_answers.
Hamish
More information about the grass-dev
mailing list