# _CP_unix_env

_CP_unix_env sets the application to
a standard UNIX environment. When using this setting, all terminal
input and output must be done via standard UNIX routines only (system,
printf, scanf).

## Syntax

```
int _CP_unix_env()
```

## Description

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

Note: The default environment after logging on to D3 is _CP_pick_env. When in _CP_unix_env(), D3 input/output routines do not function properly. This routine
consumes excessive CPU time.

## See also

- [C functions overview](https://d3codex.com/cfunctions/c-functions-overview/)

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