scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 45f79f6bb8623c3b169480c54c860fb0eb4487da
parent 83d0cddfed6c69d00071efb8eb8785b469752d2b
Author: Quentin Rameau <quinq@fifth.space>
Date:   Mon, 27 Feb 2017 15:57:48 +0100

[libc] Correct style in strcspn

Diffstat:
Mlibc/src/strcspn.c | 18+++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/libc/src/strcspn.c b/libc/src/strcspn.c @@ -5,15 +5,15 @@ size_t strcspn(const char *s1, const char *s2) { - size_t n; - int c; + size_t n; + int c; const char *p; - for (n = 0; c = *s1++; ++n) { - for (p = s2; *p && *p != c; ++p) - /* nothing */; - if (*p == c) - break; - } - return n; + for (n = 0; c = *s1++; ++n) { + for (p = s2; *p && *p != c; ++p) + /* nothing */; + if (*p == c) + break; + } + return n; }