x11gfx.hidd: support 32 bit modes
[AROS.git] / compiler / stdc / stch_l.c
blob453cffcd231d2cc15480fe2f88ab24134e9765b1
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 SAS/C function stch_l().
6 */
8 #include <stdlib.h>
10 /*****************************************************************************
12 NAME */
13 #include <string.h>
15 int stch_l (
17 /* SYNOPSIS */
18 const char * in,
19 long * lvalue)
21 /* FUNCTION
22 Convert hexadecimal string to a long integer
24 INPUTS
25 in - The hexadecimal string to be converted
26 lvalue - Pointer to long where the result is saved
28 RESULT
29 Number of characters converted
31 NOTES
32 SAS/C specific
34 EXAMPLE
36 BUGS
38 SEE ALSO
40 INTERNALS
42 ******************************************************************************/
44 char *endptr;
46 *lvalue = strtoul(in, &endptr, 16);
48 return endptr - in;
50 } /* stch_l */