On 7 June 2013 12:09, Salz, Rich <rs...@akamai.com> wrote:

> The printf command appends a newline to the data so it's different from
> what your program has.
>
>         /r$
>
>
That's not true.  It behaves pretty much like standard C printf(), i.e. it
doesn't print any characters unless you ask it for them.  You can check it
by simply executing it on the command line on its own and see your next
command prompt on the same line as the output of this particular printf
command.  Or if you're sceptical about it you can do the following:

printf de9f2c7fd25e1b3afad3e85a0bd17d9b100db4b3 | hexdump -Cv

No new line added.  As I already suggested, it's an implicit NULL
terminator in the C string literal in the C program.

Cheers,
Kris

Reply via email to