Return-Path: postman 
Delivery-Date: Tue, 24 Aug 93 23:36:44 PDT
Return-Path: postman
Received: by postgres.Berkeley.EDU (5.61/1.29)
	id AA13989; Tue, 24 Aug 93 23:27:24 -0700
Resent-From: postman (POSTGRES mailing list)
Resent-Message-Id: <9308250627.AA13989@postgres.Berkeley.EDU>
Sender: owner-postman@postgres.Berkeley.EDU
X-Return-Path: jaws@pangaea.dme.nt.gov.au
Received: from DARWIN.NTU.EDU.AU by postgres.Berkeley.EDU (5.61/1.29)
	id AA13975; Tue, 24 Aug 93 23:27:12 -0700
Received: from dme.nt.gov.au ([155.205.2.1]) by DARWIN.NTU.EDU.AU with SMTP; 
          Wed, 25 Aug 1993 16:07:43 GMT
Received: from pangaea.dme by dme.nt.gov.au (4.1/SMI-4.1)
	id AA21619; Wed, 25 Aug 93 16:06:01 CST
Received: from jaws.dme by pangaea.dme (4.1/SMI-4.1)
	id AA25013; Wed, 25 Aug 93 16:07:15 CST
Date: Wed, 25 Aug 93 16:07:15 CST
From: jaws@pangaea.dme.nt.gov.au (James Woods 61-89-895257)
Message-Id: <9308250637.AA25013@pangaea.dme>
To: postgres@postgres.berkeley.edu
Subject: text type
Resent-To: postgres-dist
Resent-Date: Tue, 24 Aug 93 23:27:23 PDT

I have a user defined function written in C which takes an argument of
type text.  When the backend passes this argument in, is the string
that is passed in NULL terminated?  I have a feeling that it doesn't as
my function appears to be producing data with garbage on the and of the
strings.

If it is not NULL terminated what is the correct way to create a NULL
terminated string out of it so that I can use the normal str functions
on it?

James Woods 
jaws@pangaea.dme.nt.gov.au
