RFR-8008118

Christos Zoulas christos at zoulas.com
Fri Mar 29 13:59:08 UTC 2013


On Mar 28,  8:42pm, martinrb at google.com (Martin Buchholz) wrote:
-- Subject: Re: RFR-8008118

| Latest webrev does it this way:
| 
|     for (i = 0; i < count; i++) {
|         char *q = p + strcspn(p, ":");
|         pathv[i] = (p == q) ? "." : p;
|         *q = '\0';
|         p = q + 1;
|     }

I prefer to have loops where the sentinel is the actual condition instead
of something computed independently, but that's fine too. 

christos

PS: Can we please add strsep(3) to solaris at some point? Everyone else
relevant seems to have it.



More information about the core-libs-dev mailing list