tech-userlevel archive

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

Re: strtonum(3) from OpenBSD?



> OK, so sscanf(3) knows only one radix.

I don't know where you got that idea; scanf(3) indicates to me that it
knows three: decimal, octal, and hex - the same three strto* know.  It
even has a format (%i) that works the way strto* with a zero base
argument does, autodetecting the base.

/~\ The ASCII                             Mouse
\ / Ribbon Campaign
 X  Against HTML                mouse%rodents-montreal.org@localhost
/ \ Email!           7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B


Home | Main Index | Thread Index | Old Index