Re: Does getopt() return "-1", or "EOF", at end?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Does getopt() return "-1", or "EOF", at end?
Дата
Msg-id 16078.1010618449@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Does getopt() return "-1", or "EOF", at end?  (David Terrell <dbt@meat.net>)
Список pgsql-hackers
David Terrell <dbt@meat.net> writes:
> OpenBSD's getopt(3):
>      The getopt() function was once specified to return EOF instead of -1.
>      This was changed by IEEE Std1003.2-1992 (``POSIX.2'') to decouple
>      getopt() from <stdio.h>.

Ah, nothing like historical perspective to make it all clear.  Thanks.

Looks like -1 it shall be.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pg_dump bug ... or not?
Следующее
От: Brent Verner
Дата:
Сообщение: Re: Potential bug in pg_dump ...