windows-nt/Source/XPSP1/NT/multimedia/opengl/test/demos/misc/miscutil.c
2020-09-26 16:20:57 +08:00

27 lines
467 B
C

#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" );
}