I tried to remove 02 and in writeme.c it automatically added it? wtf?!
oh I know why oops ><"
Printable View
I tried to remove 02 and in writeme.c it automatically added it? wtf?!
oh I know why oops ><"
If you google "man printf", you get this as the first hit:
http://www.hmug.org/man/3/printf.php
It has the following to say with regards to leading zero:
--Quote:
Originally Posted by man printf
Mats
You know, you might want to learn C and its libraries with code that is less... unusual than a quine.Quote:
I tried to remove 02 and in writeme.c it automatically added it?
Like laserlight, I pointed out that this is not a "good source of learning code" in post #18 in this thread:
When you say "it put it back in", do you mean that the output of the code still contains %02x ? Yes it would do, unless you run the code that re-generates the array at the top of the code.Quote:
Note that this code surely wasn't written as a "this will be neat and tidy and easy to read".
--
Mats