Open Client and Open Server use format constants to describe how to format character and binary data. In particular, the format field of the CS_DATAFMT structure is a bitmask of format constants indicating how to format character, text, and binary data.
Table 2-1 lists Open Client format constants:
Format constant |
Valid types |
Resulting format |
---|---|---|
CS_FMT_NULLTERM |
Character and text |
The data is null-terminated. |
CS_FMT_PADBLANK |
Character and text |
The data is padded with blanks to the full length of the variable. |
CS_FMT_PADNULL |
Character, text, binary, and image |
The data is padded with nulls to the full length of the variable. |
CS_FMT_UNUSED |
All |
No formatting takes place. |