Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Change "n" to "n"' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Change "n" to "\n"
Authored by: dfe on Aug 08, '07 09:31:12AM

As anoher poster here has noted, Geeklog somehow munged the C source in an odd way and changed the last printf("n") (prints a newline) to printf("n") (prints a literal letter n). Just in case geeklog munges this post that is double-quote backslash n double-quote.

I also noticed that another poster here decided that if you change the if 1 to if 0 then it goes back to the original code I wrote that dumps it out as raw binary data. This can then be used as the argument to defaults write if you don't use the -data flag which causes the defaults command to use the data as is. Your mileage may vary on that one though.



[ Reply to This | # ]