DOKK / manpages / debian 12 / libcdk5-dev / CDKparamString2.3.en
cdk_params(3) Library Functions Manual cdk_params(3)

cdk_params - Cdk command-line parsing

cc [ flag ... ] file ... -lcdk [ library ... ]

#include <cdk.h>

CDK_PARAMS *params,
int option);
CDK_PARAMS *params,
int option,
int missing);
CDK_PARAMS *params,
int option);
CDK_PARAMS *params,
int option,
const char *missing);
int argc,
char **argv,
CDK_PARAMS *params,
const char *options);
char *string);
CDK_PARAMS * params,
int option,
int missing);

These are a set of functions used to implement the command-line utilities and demonstration programs for Cdk. Rather than set the programs' options at initialization, they construct a simple database which holds the common parameters using CDKparseParams().

Retrieves an integer (or boolean) option value from the parsed command-line.
Retrieves an optional integer (or boolean) value from the parsed command-line. If the command line option is not present, the missing value is used.
Retrieves a string option value from the parsed command-line.
Retrieve an optional string option value from the parsed command-line.
Retrieve an integer (or boolean) option value from the parsed command-line.
Parse the given argc/argv command-line, with the options passed to getopt()'s 3rd parameter.
Parse the string as one of CDK's positioning keywords, or an actual position.

cdk_position (3), getopt (3)