1cdk_params(3)              Library Functions Manual              cdk_params(3)
2
3
4

NAME

6       cdk_params - Cdk command-line parsing
7

SYNOPSIS

9       cc [ flag ... ] file ...  -lcdk [ library ... ]
10
11       #include <cdk.h>
12
13       int CDKparamNumber (
14                      CDK_PARAMS *params,
15                      int option);
16
17       int CDKparamNumber2 (
18                      CDK_PARAMS *params,
19                      int option,
20                      int missing);
21
22       char * CDKparamString (
23                      CDK_PARAMS *params,
24                      int option);
25
26       char * CDKparamString2 (
27                      CDK_PARAMS *params,
28                      int option,
29                      const char *missing);
30
31       void CDKparseParams (
32                      int argc,
33                      char **argv,
34                      CDK_PARAMS *params,
35                      const char *options);
36
37       int CDKparsePosition (
38                      char *string);
39
40       int CDKparamValue (
41                      CDK_PARAMS * params,
42                      int option,
43                      int missing);
44

DESCRIPTION

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

AVAILABLE FUNCTIONS

52       CDKparamNumber
53            Retrieves an integer (or boolean) option  value  from  the  parsed
54            command-line.
55
56       CDKparamNumber2
57            Retrieves  an  optional integer (or boolean) value from the parsed
58            command-line.  If the command line  option  is  not  present,  the
59            missing value is used.
60
61       CDKparamString
62            Retrieves a string option value from the parsed command-line.
63
64       CDKparamString2
65            Retrieve  an optional string option value from the parsed command-
66            line.
67
68       CDKparamValue
69            Retrieve an integer (or boolean) option value from the parsed com‐
70            mand-line.
71
72       CDKparseParams
73            Parse the given argc/argv command-line, with the options passed to
74            getopt()'s 3rd parameter.
75
76       CDKparsePosition
77            Parse the string as one  of  CDK's  positioning  keywords,  or  an
78            actual position.
79

SEE ALSO

81       cdk_position(3), getopt(3)
82
83
84
85                                                                 cdk_params(3)
Impressum