de-lint. disable c++ parentheses warnings. fix casts in AROSPDFApp.cc
[AROS-Contrib.git] / rexx / lstring / reradix.c
blob50d7eeb1def7c5fa688e6f6491505e8d626e31a3
1 /*
2 * $Header$
3 * $Log$
4 * Revision 1.1 2001/04/04 05:43:38 wang
5 * First commit: compiles on Linux, Amiga, Windows, Windows CE, generic gcc
7 * Revision 1.2 1999/11/26 12:52:25 bnv
8 * Nothing important.
10 * Revision 1.1 1998/07/02 17:18:00 bnv
11 * Initial Version
15 #include <lstring.h>
17 /* --------------- Lreradix ----------------- */
18 void
19 Lreradix( const PLstr to, const PLstr subject,
20 const int fromradix, const int toradix )
22 /* and suppose that subject is string */
23 /* radix must be from 2 to 16 */
24 long integer=0;
25 int j;
27 for (j=0; j<LLEN(*subject); j++)
28 integer = integer*fromradix + HEXVAL(LSTR(*subject)[j]);
30 /* ... incomplete ... */
31 } /* Lreradix */