On Sun, Jan 29, 2023 at 08:16:06AM -0700, Todd C. Miller wrote:
> Unfortunately we cannot use strtonum(3) here since there may be
> non-digit characters following the number.  So, strtoll(3)
> it is then.

Since strptime's %s is supposed to be the inverse of strftime's %s,
which is produced with mktime(3), surely this is the way to go. I think
this should go in. I also agree with enh's reading of the FreeBSD code.

ok tb

PS: It would be nice if our regress tests exercised these interfaces a
bit better...

Reply via email to