* fix test case a bit

* remove unnecessary cast
This commit is contained in:
Timothy Bess
2018-03-17 03:06:59 -04:00
parent f60fafe8fb
commit 898cf98ccc
3 changed files with 6 additions and 4 deletions
+4 -2
View File
@@ -7,8 +7,10 @@ int main(int argc, char* argv[]) {
char* token = strtok(source, " ");
while (token) {
printf("%s_", token);
token = strtok(NULL, " ");
printf("%s", token);
if (token = strtok(NULL, " ")) {
printf("_");
}
}
return 0;