afc_readargs_parse

Name

afc_readargs_parse  -- Parses a string with the given template

Synopsis

int afc_readargs_parse ( ReadArgs * rdargs, char * template, char * text );

Description

This is the main method. Using this method you can parse the string with a given template.

Inputs

rdargs

Pointer to a *valid* ReadArgs instance.

template

The template to be used to parse the given string. The template string is a list of one or more fields separated by commas, with zero or more attributes separated by the "/" char. Valid attributes are:

S

Field is a switch. It may be either set of left out.

N

Field is a number. Strings are not allowed.

A

Field is required. If it is left out, the parse fails.

K

The keyword must be given when filling the option.

M

Multiple strings. The result is stored inside a special NodeMaster class.

text

The string to parse

Result

Note

See Also