mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
467 B
26 lines
467 B
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
|
|
int
|
|
miscParseGeometry( char *Geometry,
|
|
int *x,
|
|
int *y,
|
|
int *Width,
|
|
int *Height
|
|
)
|
|
{
|
|
int Scanned = 0;
|
|
|
|
if ( NULL != Geometry )
|
|
{
|
|
Scanned = sscanf( Geometry, "%ix%i+%i+%i", Width, Height, x, y );
|
|
}
|
|
return( Scanned );
|
|
}
|
|
|
|
char *
|
|
miscGetGeometryHelpString( void )
|
|
{
|
|
return( "WidthxHeight+Left+Top" );
|
|
}
|