mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09:00
These combine strndup() + strspn()/strcspn() into one. There are a bunch of strndupa() calls that could use similar treatment (or should be converted to strdup[c]spn(), but this commit doesn't bother with that.