(Page 6 of 30 in this chapter)


SccpBcdNumToAscii

Description

Converts the binary coded decimal number pointed to by pBcd to an ASCII string of digits.

Prototype

SCCP_STATUS SccpBcdNumToAscii (U8 *pBcd,

U32 nDigits,

char *pAsciiBuf,

U32 nAsciiBufLen )

pBcd The address of a binary coded decimal number.

nDigits The number of digits contain in the number.

pAsciiBuf The address of a buffer for the converted number.

nAsciiBufLen The size of the output buffer in bytes.

Return Values

Details

The results are placed in the buffer pointed to by pAsciiBuf. If the number of digits is less than the size of the ASCII buffer, the buffer is padded with null characters.

Note: The ASCII string does not end in a null-termination character when the buffer size is exactly the same as the number of digits.



(Page 6 of 30 in this chapter)


tech_support@nmss.com
Copyright © 1999, Natural MicroSystems, Inc. All rights reserved.