Date: Tue, 04 Dec 2001 00:15:33 -0700 From: Wes Peters <wes@softweyr.com> To: Mike Barcroft <mike@FreeBSD.org> Cc: Bill Fenner <fenner@research.att.com>, freebsd-standards@bostonradio.org Subject: Re: strerror_r() implementation Message-ID: <3C0C7815.43A3C576@softweyr.com> References: <20011125014216.A84711@espresso.q9media.com> <3C00A43B.9929E9C7@softweyr.com> <200111281854.KAA13574@windsor.research.att.com> <3C05BE3A.1DF1A539@softweyr.com> <200111300454.UAA06333@windsor.research.att.com> <20011130001910.C23064@espresso.q9media.com> <3C0882A9.EF07073@softweyr.com> <20011201033530.A35631@espresso.q9media.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Mike Barcroft wrote: > > Wes Peters <wes@softweyr.com> writes: > > Room for the 40 characters for the number + 13 characters of message > > plus a trailing null plus 1 byte in case somebody miscounted? Is > > anyone here actually reading the freaking CODE? > > Assuming the number is a 64-bit signed integer the maximum number of > characters that is would require is 19. The string "Unknown error: " > takes up 15 characters and 1 character for the terminating NUL. > > 19 + 15 + 1 = 35 > > Did I miss something? Yeah, the 40 was left over from the previous implementation. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC wes@softweyr.com http://softweyr.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C0C7815.43A3C576>