Programming Guide


Saves screen contents

char *sm_save_data(void);


C only



sm_save_data saves the current screen's data for external access or subsequent retrieval and returns the address of the save area. sm_save_data ignores selections from the following widgets: radio buttons, toggle buttons, check boxes, and list boxes.

To restore the saved data, use sm_restore_data. Use sm_sv_free to discard a save area.

You can get the size of the data with this statement:

length = ((unsigned int *)buffer)[-1];

See Also

sm_restore_data, sm_sv_data, sm_sv_free