update mappings to reflect recent changes
[AROS.git] / compiler / clib / stco_l.c
blob6dd3fb8ac7044d100d1a0454d31dd322ae00cc84
1 /*
2 Copyright © 1995-2012, The AROS Development Team. All rights reserved.
3 $Id$
5 SAS/C function stco_l().
6 */
8 #include <stdlib.h>
10 /*****************************************************************************
12 NAME */
13 #include <string.h>
15 int stco_l (
17 /* SYNOPSIS */
18 const char * in,
19 long * lvalue)
21 /* FUNCTION
22 Convert octal string to a long integer
24 INPUTS
25 in - The octal 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, 8);
49 if (s != in)
51 *lvalue = l;
52 return 1;
54 else
55 return 0;
56 } /* stco_l */