On 10/24/18 4:06 PM, Kapus, Timotej wrote:
I find strspn easier to read, communicate intention and has less LOC
On the other hand, it's probably slower for this particular use case, and the replacement code you wrote is not equivalent to the code it replaced because 'c' ends up having a different value.