This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

strings: \t special but \n not?


I have noticed that \n is treated differently than \t. Consider

echo -e "HELLO\nW" | strings
echo -e "HELLO\tW" | strings

The first will print "HELLO" and the second "HELLO\tW"

I have noticed in the code that in addition to checking ISPRINT(c), c
== '\t' is also special cased as being a "string". Why is \t special
and not other whitespace?

Thanks,
Erik


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]