diff options
author | Frans Kaashoek <[email protected]> | 2016-08-25 09:13:00 -0400 |
---|---|---|
committer | Frans Kaashoek <[email protected]> | 2016-08-25 09:13:00 -0400 |
commit | 7894fcd21732dd2ddfbb9beca52d037a62ed11f4 (patch) | |
tree | eabcfc4f08613dcf7c35e58d9425f02c4c65224f /string.c | |
parent | 6de6a3c952dc8786619bd052e26e6bc1c97be2e6 (diff) | |
download | xv6-labs-7894fcd21732dd2ddfbb9beca52d037a62ed11f4.tar.gz xv6-labs-7894fcd21732dd2ddfbb9beca52d037a62ed11f4.tar.bz2 xv6-labs-7894fcd21732dd2ddfbb9beca52d037a62ed11f4.zip |
Remove trailing white space with:
for f in *.{h,c}; do sed -i .sed 's/[[:blank:]]*$//' $f; done
(Thanks to Nicolás Wolovick)
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -16,7 +16,7 @@ int memcmp(const void *v1, const void *v2, uint n) { const uchar *s1, *s2; - + s1 = v1; s2 = v2; while(n-- > 0){ @@ -69,7 +69,7 @@ char* strncpy(char *s, const char *t, int n) { char *os; - + os = s; while(n-- > 0 && (*s++ = *t++) != 0) ; @@ -83,7 +83,7 @@ char* safestrcpy(char *s, const char *t, int n) { char *os; - + os = s; if(n <= 0) return os; |