WININIT(3)               libwin Reference              WININIT(3)


NAME
       wininit - libwin initialisation functions

SYNOPSIS
       #include <libwin.h>

       int win_init (void); void win_uninit (void);

DESCRIPTION
       win_init()  sets  up  default  values,  obtain via various
       methods from Windows. These are currently the  environment
       variables USER, LOGIN, LOGNAME and HOME.  These are set so
       that certain DJGPP functions work correctly  (e.g.   getp-
       went(),getlogin()).   It  also sets up the program so that
       win_uninit() is called automatically on exit.

       win_uninit() currently does nothing, but might do one day.
       This  function  shouldn't  need to be called anyway, as it
       should be called automatically when the program exits.

RETURN VALUES
       win_init() returns 1 on success, 0 on failure.

SEE ALSO
       libwin(7)
































libwin 0.1.5            22 September 2002                       1



Page created on Sun Sep 29 21:12:26 2002 by m2h.pl, a man page to HTML convertor.
m2h.pl Version 1.3.2, Copyright 1997-2002 by Richard Dawe <webmaster@phekda.org>