[MPlayer-dev-eng] octal and hex surprise and perplex

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Sun Jun 11 12:21:49 CEST 2006


Hi,
On Sun, Jun 11, 2006 at 12:10:34PM +0300, Uoti Urpala wrote:
> On Sun, 2006-06-11 at 10:22 +0200, Reimar Döffinger wrote:
> > Maybe it's better to replace the strtol(..., 0) by
> > strtol(..., 10) and if that fails also try strtol(..., 16).
> 
> The strtol(..., 16) fallback would accept hex strings without a prefix
> such as "f". 

Hmmm... so how about the even weirder way:
strtol(..., 10)
and
strtol(..., 0)
as fallback?

Greetings,
Reimar Döffinger



More information about the MPlayer-dev-eng mailing list