cfunc.si C Function/C Functions

cfunc.si

Command cfunc.si C Function/C Functions
Applicable release versions: AP 6.1
Category C Functions (120)
Description converts a CPSTR into an integer.
Syntax int _CP_si_(CPSTR * string)
Options
Example
CPSTR * s = _CP_mkstr("3.12345");
int i;

i = _CP_si_(s);
_CP_unix_env();
printf("%dn", i);
_CP_str_free(s);

 This example displays "3".
Purpose
Related cfunc.introduction