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]
 ---------------------------------------------------------------------------
 qwriteeos_sub                                                         QWIKC
 ---------------------------------------------------------------------------
 Function       Writes an array (or string) with a specified length to the
                current screen with an optional attribute change starting at
                the EOS marker.
 Syntax         void qwriteeos_sub( int attr, int length, char far *astr );
 Remarks        This routine writes length characters of the string pointed
                to by astr at the previously set EOS marker with the
                attribute attr.  This enables you to write substrings when
                specifying a starting index (astr[i]).  (Other routines like
                qwriteeos 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 step B"  with the
                existing screen attributes:

                  strcpy( mystr, "Now for step B: Testing out this line." );
                  qwrite_sub( 1, 5, SAMEATTR, 8, &mystr[16] );
                  qwriteeos_sub( SAMEATTR, 6, &mystr[8]);


See Also: qwrite_sub() qwritec() qwriteeos()

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