Re: pstrndup()

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
Cc: pgsql-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: pstrndup()
Date: 2004-03-22 04:38:47
Message-ID: 200403220438.i2M4clm04184@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


Karel, do you plan to use pstrndup for some purpose? I assume so.

---------------------------------------------------------------------------

Karel Zak wrote:
>
> Hi guys,
>
> we have pstrdup(char *string) and this tiny patch adds
> pstrndup(char *sting, Size len).
>
> By the way, I a little played with the apache memory managment and
> they have the others interesting routines like ap_pstrcat(...) that
> concatenate all arguments (last must be NULL) to new allocated
> string. Is something like this interesting for PostgreSQL?
>
> Karel
>
> --
> Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
> http://home.zf.jcu.cz/~zakkr/

[ Attachment, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

  • pstrndup() at 2004-03-17 13:04:28 from Karel Zak

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2004-03-22 04:45:18 Re: pstrndup()
Previous Message Bruce Momjian 2004-03-22 04:17:36 Re: xlog.c timezone name size