Hi !
As a beginner in C I use a lot of printf() in my code to verify what's happening in my app. I just wrote an app. that scans thru a directory and made some tests on the fieldname. When I was pleased with the result, I deleted all printf() except the last one.
When I deleted them, I got wrong result on my last print().
The one I deleted, contained the same var as the last one except for one.
In my app I use DIR struct. I found that if I did not printf( "%s\n", dir->d_name ) in the loop, I got another result in my var....
My question is, can the use of printf() effect the variables ?
Best regards
Micael