Restores previously saved data to the screenint sm_restore_data(char *buffer);
- The address of an area initialized by sm_save_data that contains the data to restore. Data items are stored in
bufferas 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_restore_datarestores all data items, on- and off-screen, to the current screen from
buffer, previously initialized by sm_save_data. Passing a buffer not returned by
sm_save_data, or attempting to restore to a screen other than the one saved, can yield unpredictable results.