From: Greg King Date: Fri, 23 May 2014 04:35:19 +0000 (-0400) Subject: Conformed to the cc65 project's coding style. X-Git-Tag: V2.15~62^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a92f51fea58211aed80b80e4c2feb910e5951d4a;p=cc65 Conformed to the cc65 project's coding style. --- diff --git a/libsrc/common/strqtok.c b/libsrc/common/strqtok.c index 6e8476b15..132a50d69 100644 --- a/libsrc/common/strqtok.c +++ b/libsrc/common/strqtok.c @@ -15,7 +15,7 @@ #include -char * __fastcall__ strqtok (register char *s1, const char *s2) +char* __fastcall__ strqtok (register char* s1, const char* s2) { static char c; static char *start; diff --git a/testcode/lib/strqtok-test.c b/testcode/lib/strqtok-test.c index b670f37ce..576ab531d 100644 --- a/testcode/lib/strqtok-test.c +++ b/testcode/lib/strqtok-test.c @@ -30,7 +30,7 @@ #include #include -void main(void) +void main (void) { /* b[] and s[] are declared as automatic, not static, variables ** because strqtok() will change them. @@ -41,10 +41,10 @@ void main(void) char s[] = " This , \" is only \"a short " "quoting\"test , honoring blanks" ", commas\", and (4) empty \"\"\"\"\"\"\"\" \"strings, EOT "; - char *t = strqtok(s, " ,"); + char *t = strqtok (s, " ,"); while (t != NULL) { - printf(">%s<\n", t); - t = strqtok(NULL, " ,"); + printf (">%s<\n", t); + t = strqtok (NULL, " ,"); } }