Strings

tableBASE does not use NULL-terminated strings for the different fields of type character [ ] (table names, passwords, etc.). If any of these strings are less than the maximum allowed size, they must be padded with spaces (the character 0x40 in EBCDIC).

An example of a routine to add this padding (as required) to a standard C NULL-terminated string is provided as part of the C examples in this manual. Its prototype is

fixStringLength( szInput, sOutput, int nMaximumLength );