Return-Path: postman 
Delivery-Date: Wed, 01 Sep 93 16:23:39 PDT
Return-Path: postman
Received: by postgres.Berkeley.EDU (5.61/1.29)
	id AA05509; Wed, 1 Sep 93 16:17:19 -0700
Resent-From: postman (POSTGRES mailing list)
Resent-Message-Id: <9309012317.AA05509@postgres.Berkeley.EDU>
Sender: owner-postman@postgres.Berkeley.EDU
X-Return-Path: jolly@postgres.Berkeley.EDU
Received: from arcadia.CS.Berkeley.EDU by postgres.Berkeley.EDU (5.61/1.29)
	id AA05501; Wed, 1 Sep 93 16:17:12 -0700
Received: from localhost (localhost [127.0.0.1]) by arcadia.CS.Berkeley.EDU (8.1C/8.1B) with SMTP id QAA17506; Wed, 1 Sep 1993 16:26:56 -0700
Message-Id: <199309012326.QAA17506@arcadia.CS.Berkeley.EDU>
To: turk@andrews.edu (Daniel Turk)
Cc: postgres@postgres.berkeley.edu
Subject: Re: LIBPQ "global" variables 
In-Reply-To: Your message of "Wed, 01 Sep 93 17:30:56 EDT."
             <9309012131.AA06072@andrews.edu> 
Date: Wed, 01 Sep 93 16:26:55 -0700
From: Jolly Chen <jolly@postgres.Berkeley.EDU>
X-Mts: smtp
Resent-To: postgres-dist
Resent-Date: Wed, 01 Sep 93 16:17:17 PDT



> I'm wanting to access the "internal variables" provided by LIBPQ.  These
> include PQhost, PQport, etc.  I see them all defined in the LIBPQ
> section of the manual, but have not been able to determine how a
> programmer is supposed to define them in an application program and
> access them.  I can't find them defined in any of the .h files and when
> I simply define them in my program they are not automatically
> initialized with values I'd expect.....
> 
> Any help would be appreciated!
> 
> --------------------------------------------------------------------------
> Dan Turk     Computer Science & Information Systems     Andrews University
> Berrien Springs, MI          turk@andrews.edu               (616) 471-3426
> ==========================================================================

You can access these variables by declaring them as extern in your C
program.

- Jolly Chen


