Determining the Size of the Memory Screen

You can determine the number of rows in a memory screen with the memory screen row quantity function, ms_rowq():

int ms_rowq(msp)

SCRPTR msp;            /* Pointer to memory screen            */

You can determine the number of columns in a memory screen with the memory screen column quantity function, ms_colq():

int ms_colq(msp)

SCRPTR msp;            /* Pointer to memory screen            */

You can calculate the amount of memory used by a memory screen with the following equation:

memory screen size = rowq * colq * 2 + sizeof(memory screen structure)


Home Contents Previous Next