Voting

: min(zero, five)?
(Example: nine)

The Note You're Voting On

nospam at nospam dot com
8 years ago
It might not be clear from the example, that

strcspn('abcdhelloabcd', 'abcd', -9, -5) == 4

because it's only evaluating 'hell' which doesn't contain any mask, so returns strlen('hell').

<< Back to user notes page

To Top