Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / libs / rexxsyslib / lengthargstring.c
blobc4201235258104871f9acb60e137ad4759eba9b0
1 /*
2 Copyright © 1995-2002, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: english
7 */
8 #include "rexxsyslib_intern.h"
10 /*****************************************************************************
12 NAME */
13 #include <clib/rexxsyslib_protos.h>
15 AROS_LH1(ULONG, LengthArgstring,
17 /* SYNOPSIS */
18 AROS_LHA(UBYTE *, argstring, A0),
20 /* LOCATION */
21 struct Library *, RexxSysBase, 23, RexxSys)
23 /* FUNCTION
24 This will return the length of a string created with CreateArgstring
26 INPUTS
27 argstring - Pointer to the string part of a RexxArg structure returned
28 from CreateArgstring
30 RESULT
31 length of the argstring
33 NOTES
35 EXAMPLE
37 BUGS
39 SEE ALSO
40 CreateArgstring()
42 INTERNALS
45 *****************************************************************************/
47 AROS_LIBFUNC_INIT
49 static struct RexxArg dummy;
50 struct RexxArg *ra;
52 ra = (struct RexxArg *)(argstring - ((void *)dummy.ra_Buff - (void *)&dummy));
54 ReturnInt("LengthArgstring", ULONG, ra->ra_Length);
55 AROS_LIBFUNC_EXIT
56 } /* LengthArgstring */