carta

strcspn(3) on Linux

The text f26668b8f889, as Debian 9 (Stretch) shipped it.

get length of a prefix substring

strcspn(3) on Linux now