carta

strcspn(3) on Linux

The text b2d77b2336d9, as Debian 10 (Buster) shipped it.

get length of a prefix substring

strcspn(3) on Linux now