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".