clGetArgc  clGetConfig

Chapter 2: Bridged Functions

clGetArgv

Description

Finds specific arguments that are on the command line that launches the application. Similar to the “char *argv[]” that is passed to the C main function.

Syntax

int clGetArgv(int index, string *argument));

Parameter

Description

index

Argument number you want to find, zero index based.

argument

String to which you want to put the argument.

Return values

Integer.

Returns 1 for success, and 0 for failure.

Examples

Example 6

string myArg;
int rv;
rv = clGetArgv(3, &myArg)

Example 7

string argv;
clGetArgv(0,&argv)://argv is the name of the
					 //application running the ODL
erm(“argv[0]=[%s]”,argv);




Copyright © 2005. Sybase Inc. All rights reserved. clGetConfig

View this book as PDF