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

From Dominic J. Eidson
Subject Re: Does getopt() return "-1", or "EOF", at end?
Date
Msg-id Pine.LNX.4.33.0201091437480.2671-100000@morannon.the-infinite.org
Whole thread Raw
In response to Does getopt() return "-1", or "EOF", at end?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Wed, 9 Jan 2002, Tom Lane wrote:

> I notice that in some places we compare the result of getopt(3) to
> "EOF", and in some other places we compare it to "-1".  I think we
> should standardize on one or the other; anyone have an opinion
> which it should be?

Why not standardize on -1 - considering that's what the manpages I've been
able to find, say. (Linux, AIX)

Using EOF where the documentation states -1 - to me, would be confusing.


-- 
Dominic J. Eidson                                       "Baruk Khazad! Khazad ai-menu!" - Gimli
-------------------------------------------------------------------------------
http://www.the-infinite.org/              http://www.the-infinite.org/~dominic/



pgsql-hackers by date:

Previous
From: "Marc G. Fournier"
Date:
Subject: pg_dump bug ... or not?
Next
From: Peter Eisentraut
Date:
Subject: Re: Does getopt() return "-1", or "EOF", at end?