Translates (exactly) 6 ASCII numeric characters to a 2-byte integer stored most significant byte first. (The source string is not expected to be zero-terminated.) This function can be used for translating ASCII numeric data to the iSeries™ integer format.
cwbDT_Wide6ToBin2
unsigned int CWB_ENTRY cwbDT_ASCII6ToBin2( char *target, char *source);
The following list shows common return values.
The target data will be stored with the Most Significant Byte first. This is the format that the iSeries server uses and is the opposite of the format that is used by Intel® x86 processors. Valid formats for the ASCII source data are as follows:
" + 123" "- 123 " " +123 " " 123" " -123" "+123 "