git://git.jankratochvil.net
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
branch update for HEAD-2003021201
[reactos.git]
/
lib
/
crtdll
/
string
/
strspn.c
1
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
2
#include <msvcrt/string.h>
3
4
size_t
5
strspn(const char *s1, const char *s2)
6
{
7
const char *p = s1, *spanp;
8
char c, sc;
9
10
cont:
11
c = *p++;
12
for (spanp = s2; (sc = *spanp++) != 0;)
13
if (sc == c)
14
goto cont;
15
return (p - 1 - s1);
16
}