From a92f51fea58211aed80b80e4c2feb910e5951d4a Mon Sep 17 00:00:00 2001 From: Greg King Date: Fri, 23 May 2014 00:35:19 -0400 Subject: [PATCH] Conformed to the cc65 project's coding style. --- libsrc/common/strqtok.c | 2 +- testcode/lib/strqtok-test.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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, " ,"); } }