2 Copyright (C) 1995-2011, The AROS Development Team. All rights reserved.
9 LONG l2a(LONG x, STRPTR buf) /* long to ascii */
11 LONG a = (x < 0 ? -x : x);
12 LONG i = 31, j, len = 0;
16 tmp[i] = '0' + (a % 10);
18 } while (i-- && (a /= 10));
26 for (j = 0; j < len; ++j)
33 void cliVarNum(CONST_STRPTR name, LONG value)
36 LONG len = l2a(value, buf);
37 SetVar(name, buf, len, GVF_LOCAL_ONLY);