Skip site navigation (1) Skip section navigation (2)

Re: C-Language Functions: VarChar and Text arguments

From: Jasen Betts <jasen(at)xnet(dot)co(dot)nz>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: C-Language Functions: VarChar and Text arguments
Date: 2010-04-08 09:33:42
Message-ID: hpk7tm$dsf$2@reversiblemaps.ath.cx (view raw or flat)
Thread:
Lists: pgsql-novice
On 2010-04-06, Carel Combrink <s25291930(at)tuks(dot)co(dot)za> wrote:

> Isn't there an easier way to use the data (text*) in a printf() type  
> way, I need to construct a SQL query from the input data and I am  
> using the printf() notation and %s only works on zero terminated  
> strings.

???

  printf("%.*s",length,char_pointer);
  


In response to

pgsql-novice by date

Next:From: Jasen BettsDate: 2010-04-08 09:42:36
Subject: Re: Read only postgres server
Previous:From: Tim LandscheidtDate: 2010-04-07 10:34:57
Subject: Re: How to find object dependencies in PG 8.4

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group