and, of course, the whole function body can be reduced to <code>
return string && string[strcspn(...)] != '\0';
</code>