# _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](https://d3codex.com/cfunctions/c-functions-overview/)

---
Source: https://d3codex.com/cfunctions/cp-casing/ - part of the D3Codex reference.
