diff options
author | Rob Barnes <robbarnes@google.com> | 2021-07-27 15:29:51 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-08-09 16:43:13 +0000 |
commit | b82517a459d8e9394a1ea4a2a0148232c61f45e5 (patch) | |
tree | 9d37d20245dae1e41e074c80ae064c5823d12003 /test/bklight_lid.c | |
parent | 48f83b8b045e4105c4811bf8982cc109e7408b9e (diff) | |
download | chrome-ec-b82517a459d8e9394a1ea4a2a0148232c61f45e5.tar.gz |
util: Add strcspn
Add the standard string function strcspn. strcspn calculates the length
of the initial segment of s which consists entirely of bytes not in
reject.
BUG=None
TEST=make run-utils_str
BRANCH=None
Signed-off-by: Rob Barnes <robbarnes@google.com>
Change-Id: I3eb9a4fff42cb0fdcdb288d00f8070e0f22b2179
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3057730
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'test/bklight_lid.c')
0 files changed, 0 insertions, 0 deletions