FDOSTUI
FreeDOS Text User Interface
Functions
block.h File Reference

read or write a block of screen memory More...

Go to the source code of this file.

Functions

void __FAR * block_read (struct box const *const i_box)
 read a block of screen memory More...
 
void block_write (void const __FAR *i_block, struct box const *const i_box)
 write a block of screen memory More...
 
void block_free (void __FAR *i_block)
 

Detailed Description

read or write a block of screen memory

The block_read and block_write routines are typically used in the library to save and restore the background of popups.

Function Documentation

◆ block_free()

void block_free ( void __FAR *  i_block)
Parameters
[in]i_blockblock to release
Returns
none

◆ block_read()

void __FAR * block_read ( struct box const *const  i_box)

read a block of screen memory

Parameters
[in]i_boxregion of screen to read
Returns
0 failure unable to allocate memory
!0 pointer to memory block

◆ block_write()

void block_write ( void const __FAR *  i_block,
struct box const *const  i_box 
)

write a block of screen memory

Parameters
[in]i_blockmemory bock to write
[in]i_boxregion to write block
Returns
none