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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: David Terrell <dbt(at)meat(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Does getopt() return "-1", or "EOF", at end?
Date: 2002-01-09 23:20:49
Message-ID: 16078.1010618449@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

David Terrell <dbt(at)meat(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Brent Verner 2002-01-09 23:48:29 Re: Potential bug in pg_dump ...
Previous Message Tom Lane 2002-01-09 23:13:24 Re: pg_dump bug ... or not?