Syntax
int MaxCol( void );
Arguments
No arguments.
Return value
The last visible zero-based column index.
Description
Use the zero-based right edge to place output against the edge or bound a text rectangle. `MaxCol() + 1` is the current width in columns. Read it again after a resize or `SetMode()` when laying out the screen.
Example
#include "xdev-wtui.h"
#include <stdio.h>
int main( void )
{
printf( "Screen width: %d columns\n", MaxCol() + 1 );
return 0;
}