cfunc.casing
Pick/BASIC 'casing' functionality from C.
Syntax
int _CP_casing(int expression)
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.
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('%d\n',i);
/* turn casing on - print 1 */
_CP_casing(1);
_CP_compare(&i,s,t);
printf('%d\n',i);
See Also
User Comments
What do you think?
Share your experience or ask a question by using the form below.
Login to leave your comments.
