(Page 14 of 35 in this chapter) Version


ISUPASCIItoBCD

Description

Converts a string of ASCII digits to binary coded decimal.

Prototype

U8 TXISUPAPIFUNC ISUPASCIItoBCD ( U8 *ascii,
U8 *bcd,
U8 length )

ascii Pointer to NULL terminated ASCII string

bcd Pointer to destination string

length Number of bytes in destination

Return Values

ISUPASCIItoBCD returns the number of successfully converted digits if successful, else zero.

Details

None.



(Page 14 of 35 in this chapter) Version


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