Return-Path: postman 
Delivery-Date: Wed, 01 Sep 93 16:23:24 PDT
Return-Path: postman
Received: by postgres.Berkeley.EDU (5.61/1.29)
	id AA05564; Wed, 1 Sep 93 16:21:04 -0700
Resent-From: postman (POSTGRES mailing list)
Resent-Message-Id: <9309012321.AA05564@postgres.Berkeley.EDU>
Sender: owner-postman@postgres.Berkeley.EDU
X-Return-Path: turk@andrews.edu
Received: from peter.cs.andrews.edu by postgres.Berkeley.EDU (5.61/1.29)
	id AA05554; Wed, 1 Sep 93 16:20:57 -0700
Received: by andrews.edu (5.57/Ultrix3.0-C)
	id AA08480; Wed, 1 Sep 93 19:31:18 -0400
From: turk@andrews.edu (Daniel Turk)
Message-Id: <9309012331.AA08480@andrews.edu>
Subject: Re: LIBPQ "global" variables
To: jolly@postgres.berkeley.edu (Jolly Chen)
Date: Wed, 1 Sep 1993 19:31:15 -0400 (EDT)
Cc: postgres@postgres.berkeley.edu
In-Reply-To: <199309012326.QAA17506@arcadia.CS.Berkeley.EDU> from "Jolly Chen" at Sep 1, 93 04:26:55 pm
X-Mailer: ELM [version 2.4 PL21]
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length: 1320      
Resent-To: postgres-dist
Resent-Date: Wed, 01 Sep 93 16:21:03 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

I've done this and get "core dump".....!  That's what I thought I'd have
to do!

--------------------------------------------------------------------------
Dan Turk     Computer Science & Information Systems     Andrews University
Berrien Springs, MI          turk@andrews.edu               (616) 471-3426
==========================================================================
