/*
                        I C G E T O P I . C
    ported for non-msdos pwp 93 07 16

    % 1 name
\functoc {ic\_getoptindex}
    % 2 declaration
{int \fname (\params\ )}
    % 3 arguments
{}
    % 4 return value
{The index in the \Var{argv} command line argument vector where the last option
was found}
    % 5 functions used
{}
    % 6 see also
{ic\_getoptval, setoptchars, ic\_getopt}
    % 7 source file
{icgetopi.c}
    % 8 description
{The function returns the index in the \Var{argv} vector where the last
argument was found after a call of \Function{ic\_getopt}.
The returnvalue of the function is undefined before the first
call of function \Function{ic\_getopt}.

Note that after a call to \Function{ic\_getopt} the element
\Var{argv[\fname()]} does not point to the optionstring, but to the
command line entry which originally following the optionstring, as
\Function{ic\_getopt} removes the optionstring from the \Var{argv} array.
}
*/
#ifndef MSDOS

#include <stdio.h>
#include "icrss.h"

extern int
    near icce_next_option;

int ic_getoptindex()
{
    return (icce_next_option);
}
#endif
