Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C/C++ v10.0 : C library - <b>synopsis:</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <graph.h>
    void _FAR _outmem( char _FAR *text, short length );

Description:
    The _outmem function displays the character string indicated by the
    argument text.  The argument length specifies the number of characters
    to be displayed.  Unlike the  _outtext function, _outmem will display
    the graphical representation of characters such as ASCII 10 and 0,
    instead of interpreting them as control characters.

    The text is displayed using the current text color (see the
     _settextcolor function), starting at the current text position (see the
     _settextposition function).  The text position is updated to follow the
    end of the displayed text.

    The graphics library can display text in three different ways.

     1. The  _outtext and  _outmem functions can be used in any video mode.
         However, this variety of text can be displayed in only one size.

     2. The  _grtext function displays text as a sequence of line segments,
        and can be drawn in different sizes, with different orientations and
        alignments.

     3. The  _outgtext function displays text in the currently selected
        font.  Both bit-mapped and vector fonts are supported; the size and
        type of text depends on the fonts that are available.


Returns:
    The _outmem function does not return a value.

See Also:
    _settextcolor, _settextposition, _settextwindow, _grtext, _grtext_w, _outtext,
    _outgtext

Example:
    #include <conio.h>
    #include <graph.h>

    main()
    {
        int i;
        char buf[ 1 ];

        _clearscreen( _GCLEARSCREEN );
        for( i = 0; i <= 255; ++i ) {
            _settextposition( 1 + i % 16,
                              1 + 5 * ( i / 16 ) );
            buf[ 0 ] = i;
            _outmem( buf, 1 );
        }
        getch();
    }

Classification:
    PC Graphics

Systems:
    DOS, QNX

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson