-void cf_register_opts(byte *so,struct option *lo)
-{
- int l;
-
- l=strlen(so);
- if(shortlen+l>=MAX_SHORT_OPTS)
- die("Too many short options %d",shortlen+l);
- strcat(shortopts,so);
-
- l=longlen;
- while(lo->name){
- if(l>=MAX_LONG_OPTS)
- die("Too many long options %d",l);
- longopts[l++]=*lo++;
- }
-}
-
-int cf_getopt(int argc,char * const argv[], int *longindex)
+int cf_getopt(int argc,char * const argv[],
+ const char *shortopts,const struct option *longopts,
+ int *longindex)