PQerrorMessage: suppress trailing new line? - Mailing list pgsql-general

From Felix Kater
Subject PQerrorMessage: suppress trailing new line?
Date
Msg-id 20070423160754.083ed202.fkater@googlemail.com
Whole thread Raw
Responses Re: PQerrorMessage: suppress trailing new line?  ("Andrej Ricnik-Bay" <andrej.groups@gmail.com>)
List pgsql-general
Hi,

the messages returned by PQerrorMessage() contain a trailing new line.
So, they doesn't nicely integrate into strings formatted by printf.

Is there a way to suppress the trailing new line (except for
alloc/copy to a new string)?

Thank You
Felix

pgsql-general by date:

Previous
From: Karsten Hilbert
Date:
Subject: Re: dollar-quoting trouble
Next
From: Thomas Pundt
Date:
Subject: Re: selective export for subsequent import (COPY)