_CP_casing

_CP_casing is equivalent to the casing expression BASIC statement.

Syntax

int _CP_casing(int expression)

Description

This function returns -1 if an error occurs. The error code is contained in _CP_errno.

NOTE

The _CP_casing affects any BASIC calls initiated from the C environment.

Example(s)

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

C Functions Overview