Re: *printf and zero size

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: *printf and zero size
Дата
Msg-id 2745.1133818857@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: *printf and zero size  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
>     Upon successful completion snprintf() and vsnprintf() return the number
>     of characters that would have been written to a sufficiently sized str,
>     excluding the terminating NUL character.

> but it seems this is some BSD'ism that we don't need to support if the
> standard doesn't say so.

Yeah, that is a BSD-ism.  You have a point though, we ought to document
which return convention the code follows.  I'll add something.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: *printf and zero size
Следующее
От: Qingqing Zhou
Дата:
Сообщение: About varlena2