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

Re: pstrndup()

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>,pgsql-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: pstrndup()
Date: 2004-03-22 04:45:18
Message-ID: 22073.1079930718@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-patches
Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> Karel, do you plan to use pstrndup for some purpose?  I assume so.

I am not familiar with strndup.  If the spec is like strncpy, I would
vote against including it ... strncpy is so broken that we had to invent
our own variant ...

			regards, tom lane

In response to

Responses

pgsql-patches by date

Next:From: Bruce MomjianDate: 2004-03-22 05:59:25
Subject: Re: [HACKERS] UnixWare/CVS Tip/initdb.c needs to use threads
Previous:From: Bruce MomjianDate: 2004-03-22 04:38:47
Subject: Re: pstrndup()

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