The biginttoasc() function

The biginttoasc() function converts a BIGINT type value to a C char type value.

Syntax

mint biginttoasc(bigintv, strng_val, len, base)
	const bigint bigintv
	char *strng_val
	mint len
  mint base
bigintv
A bigint value to convert to a text string.
strng_val
A pointer to the first byte of the character buffer to contain the text string.
len
The size of strng_val, in bytes, minus 1 for the null terminator.
base
The numeric base of the output. Base 10 and 16 are supported. Other values result in base 10.

Return values

0
The conversion was successful.
<0
The conversion failed.