diff options
author | Adam Chlipala <adamc@hcoop.net> | 2009-05-31 12:41:34 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2009-05-31 12:41:34 -0400 |
commit | f28d649eedad9ebd39dab473150faa9001bcb017 (patch) | |
tree | 4eac927486b596ee7118f84c2dc468489840e98d /src/c | |
parent | dee3eaade170a85f7c2619275e2bdef28038b152 (diff) |
strcspn and friends
Diffstat (limited to 'src/c')
-rw-r--r-- | src/c/urweb.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/c/urweb.c b/src/c/urweb.c index d8b606fd..ffef10e7 100644 --- a/src/c/urweb.c +++ b/src/c/urweb.c @@ -1815,6 +1815,10 @@ uw_Basis_string uw_Basis_strchr(uw_context ctx, uw_Basis_string s, uw_Basis_char return strchr(s, ch); } +uw_Basis_int uw_Basis_strcspn(uw_context ctx, uw_Basis_string s, uw_Basis_string chs) { + return strcspn(s, chs); +} + uw_Basis_int *uw_Basis_strindex(uw_context ctx, uw_Basis_string s, uw_Basis_char ch) { uw_Basis_string r = strchr(s, ch); if (r == NULL) |