src/backend/utils/adt/numutils.c
int
pg_ltoa(int32 value, char *a)
{
	uint32		uvalue = (uint32) value;
	int			len = 0;

	if (value < 0)
	{
		uvalue = (uint32) 0 - uvalue;
		a[len++] = '-';
	}
	len += pg_ultoa_n(uvalue, a + len);
	a[len] = '\0';
	return len;
}
/*
 * pg_ltoa: converts a signed 32-bit integer to its string representation and
 * returns strlen(a).
 *
 * It is the caller's responsibility to ensure that a is at least 12 bytes long,
 * which is enough room to hold a minus sign, a maximally long int32, and the
 * above terminating NUL.
 */
converts a signed 32-bit integer to its string representation and
returns strlen(a).

It is the caller's responsibility to ensure that a is at least 12 bytes long,
which is enough room to hold a minus sign, a maximally long int32, and the
above terminating NUL.
converts a signed 32 - bit integer to its string representation and returns strlen ( a ) . It is the caller ' s responsibility to ensure that a is at least 12 bytes long which is enough room to hold a minus sign a maximally long int32 and the above terminating NUL .
int
pg_ltoa(int32 value, char *a)
{
	uint32		uvalue = (uint32) value;
	int			len = 0;
	if (value < 0)
	{
		uvalue = (uint32) 0 - uvalue;
		a[len++] = '-';
	}
	len += pg_ultoa_n(uvalue, a + len);
	a[len] = '\0';
	return len;
}
int pg_ltoa ( int32 value , char * a ) { uint32 uvalue = ( uint32 ) value ; int len = 0 ; if ( value < 0 ) { uvalue = ( uint32 ) 0 - uvalue ; a [ len ++ ] = ' ' ; } len += pg_ultoa_n ( uvalue , a + len ) ; a [ len ] = ' \0 ' ; return len ; }
pg_ltoa: converts a signed 32-bit integer to its string representation and
 returns strlen(a).
pg_ltoa : converts a signed 32 - bit integer to its string representation and returns strlen ( a ) .