C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
SETROWS.C
                                             Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
/* SETROWS.C illustrates
 *      _settextrows
 */
 
#include <graph.h>
#include <stdlib.h>
 
void main( int argc, char **argv )
{
    struct _videoconfig vc;
    short rows = atoi( argv[1] );
 
    _getvideoconfig( &vc );
 
    /* Make sure new rows are valid and the same as requested rows. */
    if( !rows || (_settextrows( rows ) != rows) )
        _outtext( "\nSyntax: SETROWS [ 25 | 43 | 50 ]\n" );
 
    /* Always return old rows for batch file testing. */
    exit( vc.numtextrows );
}
                                    -♦-