cupsParseOptions

Name

cupsParseOptions -- Parse options from a command-line argument.

Synopsis

#include <cups/cups.h>

int cupsParseOptions(const char * arg, int num_options, cups_option_t ** options);

Description

Parse options from a command-line argument.

This function converts space-delimited name/value pairs according to the PAPI text option ABNF specification. Collection values ("name={a=... b=... c=...}") are stored with the curley brackets intact - use cupsParseOptions() on the value to extract the collection attributes.

Return Value

Number of options found