Programming Guide |
Saves partial screen contents
char *sm_sv_data(int first_field, int last_field);
first_field, last_field
- Specifies the area to save. All data between first
first_field
andlast_field
, inclusive, is saved to the specified address.
C only
- · The address of an area containing the saved data.
sm_sv_data
saves the current screen's data from all fields numbered fromfirst_field
tolast_field
for external access or subsequent retrieval. Use sm_rs_data to restore the saved data to the screen.Data items are stored as null-terminated character strings. The contents of a scrollable array is preceded by 2 bytes giving the total number of items saved (high order byte first); each item is preceded by two bytes of display attribute, and followed by a null. There is an additional null following all the scrolling data.
sm_rs_data, sm_save_data, sm_sv_free