_outmem

Description

Prints text of a specified length in graphics mode.

#include <graph.h>

void __far_outmem( const char__far *text, short length );

text Text string to output  
length Length of string to output  

Remarks

The _outmem function outputs the string that text points to. The length argument specifies the number of characters to output.

Unlike _outtext, the _outmem function prints all characters literally, including ASCII 10, 13, and 0 as the equivalent graphics characters. No formatting is provided. Text is printed using the current text color, starting at the current text position.

To output text using special fonts, you must use the _outgtext function.

Return Value

None.

Compatibility

Standards:None

16-Bit:DOS

32-Bit:None

See Also

_outtext, _settextcolor, _settextposition, _settextwindow

Example

/* OUTMEM.C illustrates:

* _outmem

*/

#include <stdio.h>

#include <graph.h>

void main( void )

{

int i, len;

char tmp[10];

_clearscreen( _GCLEARSCREEN );

for( i = 0; i < 256; i++ )

{

_settextposition( (i % 24) + 1, (i / 24) * 7 );

len = sprintf( tmp, "%3d %c", i, i );

_outmem( tmp, len );

}

_settextposition( 24, 1 );

}