src/backend/utils/adt/numutils.c
int
pg_lltoa(int64 value, char *a)
{
	uint64		uvalue = value;
	int			len = 0;

	if (value < 0)
	{
		uvalue = (uint64) 0 - uvalue;
		a[len++] = '-';
	}

	len += pg_ulltoa_n(uvalue, a + len);
	a[len] = '\0';
	return len;
}
/*
 * pg_lltoa: converts a signed 64-bit integer to its string representation and
 * returns strlen(a).
 *
 * Caller must ensure that 'a' points to enough memory to hold the result
 * (at least MAXINT8LEN + 1 bytes, counting a leading sign and trailing NUL).
 */
converts a signed 64-bit integer to its string representation and
returns strlen(a).

Caller must ensure that 'a' points to enough memory to hold the result
(at least MAXINT8LEN + 1 bytes, counting a leading sign and trailing NUL).
converts a signed 64 - bit integer to its string representation and returns strlen ( a ) . Caller must ensure that ' a ' points to enough memory to hold the result ( at least MAXINT8LEN + 1 bytes counting a leading sign and trailing NUL ) .
int
pg_lltoa(int64 value, char *a)
{
	uint64		uvalue = value;
	int			len = 0;
	if (value < 0)
	{
		uvalue = (uint64) 0 - uvalue;
		a[len++] = '-';
	}
	len += pg_ulltoa_n(uvalue, a + len);
	a[len] = '\0';
	return len;
}
int pg_lltoa ( int64 value , char * a ) { uint64 uvalue = value ; int len = 0 ; if ( value < 0 ) { uvalue = ( uint64 ) 0 - uvalue ; a [ len ++ ] = ' ' ; } len += pg_ulltoa_n ( uvalue , a + len ) ; a [ len ] = ' \0 ' ; return len ; }
pg_lltoa: converts a signed 64-bit integer to its string representation and
 returns strlen(a).
pg_lltoa : converts a signed 64 - bit integer to its string representation and returns strlen ( a ) .