On Mar 28, 8:42pm, marti...@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.