Date: Tue, 14 Oct 1997 10:46:16 +0200 (IST) From: Eli Zaretskii To: Cesar Scarpini Rabak cc: djgpp AT delorie DOT com Subject: Re: How is done the emulation of 'getopt_long' GNU function? In-Reply-To: <1.5.4.32.19971013202431.006c6d74@dce03.ipt.br> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Mon, 13 Oct 1997, Cesar Scarpini Rabak wrote: > Since a lot of GNU software was ported that has the long options, we are > wondering how were the ports done (emulating the functionality on a case by > case basis, same function with another name, etc.) GNU packages make a point of including source for any library function that is not provided by more-or-less standard libraries on Unix systems. So every GNU package comes with files getopt.[ch] and getopt1.c which support the long options functionality. If you don't care about GPL/LGPL issue, just lift the code from a source zip of any GNU package in v2gnu.