chiark / gitweb /
util: Rewrite in_charset to use strspn
authorJosh Triplett <josh@joshtriplett.org>
Tue, 11 Mar 2014 23:45:56 +0000 (16:45 -0700)
committerLennart Poettering <lennart@poettering.net>
Wed, 12 Mar 2014 16:02:06 +0000 (17:02 +0100)
commite0333c7314e89c0bc268bd20c5e247a7c907ab34
tree5c662cb5f35346a82856fb8e7af3819d2d6e1e75
parent7b909d7407965c03caaba30daae7aee113627a83
util: Rewrite in_charset to use strspn

This simplifies in_charset down to a one-liner, and allows for possible
optimizations of strspn in libc.
src/shared/util.c