summaryrefslogtreecommitdiffstats
path: root/Tests/GeneratorExpression/pwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/GeneratorExpression/pwd.c')
-rw-r--r--Tests/GeneratorExpression/pwd.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/Tests/GeneratorExpression/pwd.c b/Tests/GeneratorExpression/pwd.c
index 054b1af..ed23043 100644
--- a/Tests/GeneratorExpression/pwd.c
+++ b/Tests/GeneratorExpression/pwd.c
@@ -15,19 +15,17 @@ int main(int argc, char* argv[])
#define BUFSZ 20000
char buf[BUFSZ + 1];
#ifdef _WIN32
- char *pos;
+ char* pos;
#endif
getcurdir(buf, BUFSZ);
#ifdef _WIN32
pos = buf;
- while (*pos)
- {
- if (*pos == '\\')
- {
+ while (*pos) {
+ if (*pos == '\\') {
*pos = '/';
- }
- ++pos;
}
+ ++pos;
+ }
#endif
printf("%s\n", buf);
return EXIT_SUCCESS;