Enabled some keys which need the alt qualifier (brackets, back slash etc.)
[AROS.git] / compiler / stdc / stcd_l.c
blob612305789783c805dc8cd864210ecd31fb0eb1a0
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 SAS/C function stcd_l().
6 */
8 #include <stdlib.h>
10 /*****************************************************************************
12 NAME */
13 #include <string.h>
15 int stcd_l (
17 /* SYNOPSIS */
18 const char * in,
19 long * lvalue)
21 /* FUNCTION
22 Convert decimal string to a long integer
24 INPUTS
25 in - The decimal string to be converted
26 lvalue - Pointer to long where the result is saved
28 RESULT
29 1 means success. 0 means failure.
31 NOTES
32 SAS/C specific
34 EXAMPLE
36 BUGS
38 SEE ALSO
40 INTERNALS
42 ******************************************************************************/
44 char *s;
45 long l;
47 l = strtol(in, &s, 10);
49 if (s != in)
51 *lvalue = l;
52 return 1;
54 else
55 return 0;
56 } /* stcd_l */