[hackers] [scc] [libc] Correct style in strcspn || Quentin Rameau

From: <git_AT_suckless.org>
Date: Tue, 28 Feb 2017 21:08:15 +0100 (CET)

commit 45f79f6bb8623c3b169480c54c860fb0eb4487da
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Mon Feb 27 15:57:48 2017 +0100
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Tue Feb 28 21:07:03 2017 +0100

    [libc] Correct style in strcspn

diff --git a/libc/src/strcspn.c b/libc/src/strcspn.c
index 2b94db1..ba4fa65 100644
--- a/libc/src/strcspn.c
+++ b/libc/src/strcspn.c
_AT_@ -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;
 }
Received on Tue Feb 28 2017 - 21:08:15 CET

This archive was generated by hypermail 2.3.0 : Tue Feb 28 2017 - 21:12:28 CET