[LC++]Message expired in queue

MAILER-DAEMON at hline.localhealth.net MAILER-DAEMON at hline.localhealth.net
Sun Feb 23 07:50:28 UTC 2003


This message was not deliverable for a 72 hour period.

Received: from [202.0.185.5] by hline.localhealth.net id 85e00.wrk; Fri, 14 Feb 2003 16:47:00 EST
Received: from digital (list at localhost [127.0.0.1])
	by digital.linux.org.au (8.12.6/8.12.6/Debian-8) with ESMTP id h1DFRQhb029496;
	Thu, 13 Feb 2003 23:27:38 +0800
Received: from mailserver.c-lab.de (mailserver.c-lab.de [131.234.80.230])
	by digital.linux.org.au (8.12.6/8.12.6/Debian-8) with ESMTP id h1DFJNhb028149
	for <tuxcpprogramming at lists.linux.org.au>; Thu, 13 Feb 2003 23:19:38 +0800
Received: from alene.c-lab.de (alene.c-lab.de [131.234.81.253])
	by mailserver.c-lab.de (8.11.1/8.11.1) with ESMTP id h1DFJKP05345
	for <tuxcpprogramming at lists.linux.org.au>; Thu, 13 Feb 2003 16:19:20 +0100 (MET)
Received: from duhnen.c-lab.de (duhnen.c-lab.de [131.234.81.146])
	by alene.c-lab.de (8.11.6/8.11.6/SuSE Linux 0.5) with ESMTP id h1DFJGO08237
	for <tuxcpprogramming at lists.linux.org.au>; Thu, 13 Feb 2003 16:19:16 +0100
From: Julien Patrick Claassen <julien at c-lab.de>
To: <tuxcpprogramming at lists.linux.org.au>
Subject: Re: [LC++]getopt(3)
In-Reply-To: <F303Y7II9MIsjsw0Upb00015e98 at hotmail.com>
Message-ID: <Pine.LNX.4.31.0302131614090.17917-100000 at duhnen.c-lab.de>
X-Virus-Scanned: by AMaViS-perl11-milter (http://amavis.org/)
Sender: tuxcpprogramming-admin at lists.linux.org.au
Errors-To: tuxcpprogramming-admin at lists.linux.org.au
X-BeenThere: tuxcpprogramming at lists.linux.org.au
X-Mailman-Version: 2.0.13
Precedence: bulk
Reply-To: tuxcpprogramming at lists.linux.org.au
List-Unsubscribe: <http://lists.linux.org.au/listinfo/tuxcpprogramming>,
	<mailto:tuxcpprogramming-request at lists.linux.org.au?subject=unsubscribe>
List-Id: The Linux C++ Programming List <tuxcpprogramming.lists.linux.org.au>
List-Post: <mailto:tuxcpprogramming at lists.linux.org.au>
List-Help: <mailto:tuxcpprogramming-request at lists.linux.org.au?subject=help>
List-Subscribe: <http://lists.linux.org.au/listinfo/tuxcpprogramming>,
	<mailto:tuxcpprogramming-request at lists.linux.org.au?subject=subscribe>
List-Archive: <http://lists.linux.org.au/archives/tuxcpprogramming/>
X-Original-Date: Thu, 13 Feb 2003 16:19:16 +0100 (CET)
Date: Thu, 13 Feb 2003 16:19:16 +0100 (CET)

Hello!
  Try the linux/unix man-page, there is a demo program. You just do something
like that:
  while(getopt(argc,argv,"hvi:"))
  { }
  In the while-loop you can switch on the found options. I think the found
characyters are returned directly. The function-call above means there are
valid options:
  -h -v and -i. -i takes an argument, that is signalled by the ':'. So in each
case-statement you call a specific function like:
  case 'h': { help(); }
  I hope that helps.
     Kindest regards
        Julien

Julien Patrick Claassen
jclaassen at gmx.de
julien at c-lab.de
http://www.geocities.com/jjs_home

SBS C-LAB
Fuerstenallee 11
33102 Paderborn

Phone: (+49) 5251 60 6060
Fax: (+49) 5251 60 6065

www.c-lab.de

_______________________________________________
This is the Linux C++ Programming List
: http://lists.linux.org.au/listinfo/tuxcpprogramming List




More information about the tuxCPProgramming mailing list