2 Copyright © 2003, The AROS Development Team.
10 #include <exec/types.h>
12 #include "support_aros.h"
14 /***************************************************
15 Like StrToLong() but for hex numbers
16 (This function is available in OS4)
17 ***************************************************/
18 LONG
HexToLong(STRPTR s
, ULONG
*val
)
21 *val
= strtoul(s
,&end
,16);
22 if (end
== (char*)s
) return -1;
23 return end
- (char*)s
;