GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
cdk_params(3) FreeBSD Library Functions Manual cdk_params(3)

cdk_params - Cdk command-line parsing

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);
    

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().

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.

cdk_position (3), getopt (3)

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.