_CP_num

_CP_num


_CP_mkstrl Index Level _CP_occurs
Syntax int _CP_num(int* result, CPSTR* string)
Category C Interface
Type C Function
Description equivalent to the FlashBASIC function: result = num(string)

This function returns -1 if an error occurs. The error code is contained in _CP_errno.
Options
See Also C Functions introduction
Example /* is "1" alphabetic? */

CPSTR * s = _CP_mkstr("1");
int i;

_CP_num(&i,s);
_CP_unix_env();
printf("%d\n", i);
Warnings
Compatibility AP 6.1
_CP_mkstrl Index Level _CP_occurs