cfunc.casing C Function/C Functions

cfunc.casing

Command cfunc.casing C Function/C Functions
Applicable release versions: AP 6.1
Category C Functions (120)
Description equivalent to the Pick/BASIC statement: casing expression

This function returns -1 if an error occurs. The error code is contained in _CP_errno.
Syntax int _CP_casing(int expression)
Options
Example
CPSTR * s = _CP_mkstr("a");
CPSTR * t = _CP_mkstr("A");
int i;        

_CP_unix_env();
/* default is casing off - print 0 */
_CP_compare(&i,s,t);
printf("%dn",i);
/* turn casing on - print 1 */
_CP_casing(1);
_CP_compare(&i,s,t);
printf("%dn",i);
Purpose
Related cfunc.introduction