W_INIT(3)			WLIB-CALLS			W_INIT(3)

NAME

	w_init()

SYPNOSIS

	#include <Wlib.h>

	long w_init(short *width, short *height, long *colors);

DESCRIPTION

	 w_init() establishes the connection to the wserver and returns some
	information about the screen it is running on - if you want it. if you
	don't want it you may give zero pointers to some or all arguments.
	currently only the screen width and height return values of interest
	as W does not support colors. therefore a monochrome screen (*colors =
	2) will always be reported, even if running in a color mode.

RETURNS

	- the server version with the major version number in the upper 16 and
	the minor version number in the lower 16 bits. note that this number
	will always be positive.

	- something negative if an error occured, say, the library isn't able
	to connect to a server

SEE ALSO

	probably everything else

LAST CHANGED

	12/94 by TeSche, itschere@techfak.uni-bielefeld.de
