r6831@lvps87-230-33-50: verhaegs | 2008-02-03 14:08:57 +0100
[tangerine.git] / compiler / clib / stch_l.c
blob95e5997d00e6d9f9622295c44eb64496db518284
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 SAS C function stch_l().
6 */
8 #include <stdio.h>
9 #include <stdlib.h>
11 /*****************************************************************************
13 NAME */
14 #include <string.h>
16 int stch_l (
18 /* SYNOPSIS */
19 const char * in,
20 long * lvalue)
22 /* FUNCTION
23 Convert hexadecimal string to a long integer
25 INPUTS
26 in - The hexadecimal string to be converted
27 lvalue - Pointer to long where the result is saved
29 RESULT
30 Number of characters converted
32 NOTES
33 SAS C specific
35 EXAMPLE
37 BUGS
39 SEE ALSO
41 INTERNALS
43 ******************************************************************************/
45 char *endptr;
47 *lvalue = strtoul(in, &endptr, 16);
49 return endptr - in;
51 } /* stch_l */