tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: printf(1), sh(1), POSIX.2 and octal escape sequences



On Fri, Jun 30, 2023 at 05:51:13PM +0200, tlaronde%polynum.com@localhost wrote:
 > For this one I will go with the established behavior, but what should I
 > do when someone is passing, in octal or in hexa: "\000" ou "\x00"?

If you don't support embedded nulls in the strings you're handling
(and most things don't), it's an error.

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index