"Fossies" - the Fresh Open Source Software Archive

Member "vfu-4.18/vslib/getopt2.h" (5 Jan 2014, 777 Bytes) of package /linux/privat/vfu-4.18.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "getopt2.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2  *
    3  *  Copyright (C) 1994 Arno Schaefer
    4  *
    5  *  AU: Prototypen und externe Variablen fuer getopt ()
    6  *
    7  *  PO: ANSI C
    8  *
    9  */
   10 
   11 /* see getopt.h for changes */
   12 #ifndef GETOPT_H
   13 #define GETOPT_H
   14 
   15 /* next line added by <cade@biscom.net> see getopt2.cpp for changes */
   16 #define GETOPT(opts) while((optc = getopt2(argc, argv, opts)) != -1)
   17 
   18 
   19 /* avoid C/C++ linkage declarations conflict with <getopt.h> */
   20 extern "C" {
   21 
   22 extern char *optarg;
   23 extern int optind;
   24 extern int opterr;
   25 extern int optopt;
   26 extern int optc;
   27 
   28 /*
   29  * set this to `0' to avoid warning message from getopt when
   30  * reach unknown option
   31  */
   32 extern int opterr_report;
   33 
   34 } /* extern "C" */
   35 
   36 /* name changed to getopt2 to avoid library function mismatch */
   37 
   38 int getopt2(int argc, char *argv[], char *optstring);
   39 
   40 #endif