1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-10 13:29:50 +00:00

Conformed to the cc65 project's coding style.

This commit is contained in:
Greg King 2014-05-23 00:35:19 -04:00
parent 628d27327b
commit a92f51fea5
2 changed files with 5 additions and 5 deletions

View File

@ -15,7 +15,7 @@
#include <string.h>
char * __fastcall__ strqtok (register char *s1, const char *s2)
char* __fastcall__ strqtok (register char* s1, const char* s2)
{
static char c;
static char *start;

View File

@ -30,7 +30,7 @@
#include <string.h>
#include <stdio.h>
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, " ,");
}
}