ype, and store the result in the <I>arg_xxx</I>'s
data array. It must handle NULL argval as will occur when an argument
with optional value is invoked. The function must return zero to
indicate success and a non-zero error code otherwise. The error codes
may be of your own choosing as they will latter be handled by your
own <I>errorfn</I> callback.</P>
<PRE CLASS="western">enum {EMINCOUNT=1, EMAXCOUNT, EBADINT};

int myscanfn(struct arg_int *parent, const char *argval)
   {
   int val;
   char *end;

   <I>