Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- QWIKC20 & Multi-Level Virtual Windows - <b>---------------------------------------------------------------------------</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 ---------------------------------------------------------------------------
 qwrite_sub                                                            QWIKC
 ---------------------------------------------------------------------------
 Function       Writes an array (or string) with a specified length to the
                current screen with an optional attribute change.
 Syntax         void qwrite_sub( unsigned char row, unsigned char col,
                                 int attr, int length, char far *astr );
 Remarks        This routine writes length characters of the string astr at
                (row,col) with the attribute attr.  This enables you to
                write substrings when specifying a starting index (astr[i]).
                (Other routines like qwrite stop at the null-terminating
                character.) Of course, astr can be any char array or char
                pointer.  If SAMEATTR is used for attr, then the attribute
                will remain the same on the screen.
 Return value   None.
 Screens        All video pages and virtual screens.
 EOS            Updated.
 Restrictions   Stay within the screen limits.
 Example        The following code will write "Testing out this line." with
                the existing screen attributes:

                   strcpy( mystr, "Step B: Testing out this line." );
                   qwrite_sub( 1, 1, SAMEATTR, 22, &mystr[9] );


See Also: qwrite() qwritec() qwriteeos() qwriteeos_sub()

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