 base as Integer) as integer

Err CnvBaseToDec(UInt16 refNum, char *s, Int32 base, Int32 *retVal)

extern Err CnvBaseToDec(UInt16 refNum, char *s, Int32 base, Int32 *retVal)
	CNV_LIB_TRAP(sysLibTrapBase + 6);
</pre>

Note that the return value is declared as a pointer.

<p>Now the only thing left to do is implement the actual functions.
Here is one possible implementation, which can be typed
or pasted into CodeWarrior, replacing the stubs provided by the
wizard:

<pre>
Err CnvDecToBase(UInt1