SYShasValueSwitchLong

Top  Previous  Next

Evaluate of a command line parametre of the type long int.

This routine determines the existence and the value of a command line parametre. The name of the parametre may be shortened. As a result the existence of the parametre is delivered. The value becomes about a pointer zurückgeliefert.

Parametre

argc (int) [IN]

Number of the command line parametres.

argv (char **) [IN]

Field with the string of the single parametres

key (char *) [IN]

Name of the parametre for which is searched. The name is not casesensitiv and can be shortened.

value (long int *) [OUT]

Pointer on a variable in whom the value of the parametre is written. This parametre can be a ZERO. Then the value not zurückgeliefert, but only the existence of the parametre is determined.

Result

(int) [OUT]

0 (FALSE) of The parametres it does not exist, the variable *value was not changed.

1 (TRUE) The parametre exists, the variable *value contains their value. If the value is no number, is written to 0 in this variable.

Declaration

#include "basic.h"

 

int DLLENTRY SYShasValueSwitchLong (

int argc,

char * argv [],

char * key,

long int * value

);

Related functions

SYShasValueSwitchAngle

SYShasValueSwitchAngle

SYShasValueSwitchDouble

SYShasValueSwitchLong

SYShasValueSwitchLongfield

SYShasValueSwitchPointer

SYShasValueSwitchShortfield

SYShasValueSwitchText

Remarks

If several parametres with the same name are in the command line, becomes the last value zurückgeliefert.

[****]

SYShasValueSwitchInt

SYShasValueSwitchLongfield

SYShasValueSwitchPointer

SYShasValueSwitchShortfield

SYShasValueSwitchText

Remarks

If several parametres with the same name are in the command line, becomes the last value zurückgeliefert.