Man page - cdkparamstring(3)
Packages contains this manual
- cdk_uslider(3)
- cdk5-config(1)
- cdk_graph(3)
- cdk_fslider(3)
- cdk_uscale(3)
- attrbox(3)
- cdk_dialog(3)
- gen-slider(3)
- cdk_position(3)
- cdk_alphalist(3)
- cdk_objs(3)
- cdk_scroll(3)
- cdk_viewer(3)
- cdk_traverse(3)
- cdk_histogram(3)
- cdk_misc(3)
- #endif(3)
- cdk_process(3)
- cdk_draw(3)
- cdk_itemlist(3)
- cdk_template(3)
- cdk_dscale(3)
- cdk_scale(3)
- cdk_slider(3)
- cdk_button(3)
- alignxy(3)
- cdk_matrix(3)
- cdk_entry(3)
- chstrncpy(3)
- cdk_swindow(3)
- chlen(3)
- cdk_fselect(3)
- cdk_calendar(3)
- cdk_fscale(3)
- cdk_params(3)
- cdk_compat(3)
- cdk_selection(3)
- cdk_util(3)
- #if(3)
- cdk(3)
- cdk_radio(3)
- cdk_label(3)
- cdk_buttonbox(3)
- cdk_binding(3)
- intlen(3)
- cdk_menu(3)
- cdk_screen(3)
- gen-scale(3)
- cdk_mentry(3)
- cdk_marquee(3)
- cdk_display(3)
apt-get install libcdk5-dev
Manual
cdk_params
NAMESYNOPSIS
DESCRIPTION
AVAILABLE FUNCTIONS
SEE ALSO
NAME
cdk_params - Cdk command-line parsing
SYNOPSIS
cc [ flag ... ] file ... -lcdk [ library ... ]
#include
<cdk.h>
int CDKparamNumber (
CDK_PARAMS
*
params
,
int
option
);
int CDKparamNumber2 (
CDK_PARAMS
*
params
,
int
option
,
int
missing
);
char * CDKparamString (
CDK_PARAMS
*
params
,
int
option
);
char * CDKparamString2 (
CDK_PARAMS
*
params
,
int
option
,
const char *
missing
);
void CDKparseParams (
int
argc
,
char **
argv
,
CDK_PARAMS *
params
,
const char *
options
);
int CDKparsePosition (
char * string );
int CDKparamValue (
CDK_PARAMS *
params
,
int
option
,
int
missing
);
DESCRIPTION
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() .
AVAILABLE FUNCTIONS
CDKparamNumber
Retrieves an integer (or boolean) option value from the parsed command-line.
CDKparamNumber2
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.
CDKparamString
Retrieves a string option value from the parsed command-line.
CDKparamString2
Retrieve an optional string option value from the parsed command-line.
CDKparamValue
Retrieve an integer (or boolean) option value from the parsed command-line.
CDKparseParams
Parse the given argc/argv command-line, with the options passed to getopt()’s 3rd parameter.
CDKparsePosition
Parse the string as one of CDK’s positioning keywords, or an actual position.
SEE ALSO
cdk_position (3), getopt (3)