NAME

process_option_string - Processes a string of options

SYNOPSIS

#include "l/l_set_aux.h"

Example compile flags (system dependent):
  -DLINUX_X86_64 -DLINUX_X86_64_OPTERON  -DGNU_COMPILER 
   -I/home/kobus/include
   -L/home/kobus/misc/load/linux_x86_64_opteron -L/usr/lib/x86_64-linux-gnu
  -lKJB                               -lfftw3  -lgsl -lgslcblas -ljpeg  -lSVM -lstdc++                    -lpthread -lSLATEC -lg2c    -lacml -lacml_mv -lblas -lg2c      -lncursesw 


int process_option_string
(
	const char *arg,
	int (*option_fn)(const char *,const char *)
);

PARAMETERS

const char *arg
String of options as {<opt>=<val>}

DESCRIPTION

This routine parses a string of options and sends them to (*option_fn). This routine is similar to kjb_process_option_string(), but it does not use a default value for option_fn (and thus option_fn cannot be NULL). This routine is used in place of kjb_process_option_string() when additional control over the loading of functions is required; specically when one wants to diable the loading implied by the default option_fn. Like kjb_process_option_string(), the option function must be able to handle the cases (<option>, <value>), (<option>, ""), (<option>,"?"), and ("", ""). Normally, these correspond to the cases of setting an option, requesting the value of an option in a sentence, requesting the value of the option as it would be typed to set it, and requesting the values of all options, respectively.

RETURNS

On success NO_ERROR is returned and on failure ERROR is returned.

DISCLAIMER

This software is not adequatedly tested. It is recomended that results are checked independantly where appropriate.

AUTHOR

Kobus Barnard

DOCUMENTER

Kobus Barnard