---
name: "mbkenv"
section: "3"
platform: "linux"
package: "alliance"
version: "5.1.1-3"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/mbkenv"
---

# mbkenv(3)

set user preferences

## NAME

mbkenv - set user preferences

## SYNOPSYS

```
#include "mut.h"
void mbkenv();
```

## DESCRIPTION

The **mbkenv** function set the user preferences through unix environment variables. if all the variables are not defined, default values are used.

- **MBK\_WORK\_LIB**

  internally **char ∗WORK\_LIB**, sets the working directory for reading and writting, result of a **savephfig** for example. Its value is **"."** by default.

- **MBK\_CATA\_LIB**

  internally **char ∗∗CATA\_LIB**, sets the working directories for reading only. This is a set of pathes, like the unix **PATH** variable. It is used in **loadlofig** for example. Its value is **"."** by default.

- **MBK\_CATAL\_NAME**

  internally **char ∗CATAL\_NAME**, sets the name of the catalog file, needed to know where to stop a flatten, and so on. Set to **"CATAL"** by default.

- **MBK\_SEPAR**

  internally **char SEPAR**, sets the character used for string concatenation. Used for example in **concatname**. By default it is **"."**.

- **MBK\_VDD**

  internally **char \*VDD**, sets the name to be used as power level recognition pattern by the tools based upon mbk that needs to identify supplies. The default is **"vdd"**.

- **MBK\_VSS**

  internally **char \*VSS**, sets the name to be used as ground level recognition pattern by the tools based upon mbk that needs to identify supplies. The default is **"vss"**.

- **MBK\_TRACE\_MODE**

  internally **char TRACE\_MODE**, output information in each mbk access function it enters. Used for debugging purposes. By default it is **'N'**.

- **MBK\_DEBUG\_MODE**

  internally **char DEBUG\_MODE**, output information in function that makes a check on its values : mostly parsers for debug. It is very verbose, and mostly unusable. No mbk function take care of it. By default it is **'N'**.

- **MBK\_FAST\_MODE**

  internally **char FAST\_MODE**. If set to **'Y'**, no consistency checked are performed on many mbk functions. This can work only on a program that is warrantied to be bugless, else undefined results would occur. By default it is **'N'**.

- **MBK\_IN\_LO**

  internally **char IN\_LO\[5\]**. Defines the logical input format demanded by the user. See [**MBK\_IN\_LO**(1)](/MBK_IN_LO/1.md) for a list of valid formats. By default its value is **"al"**.

- **MBK\_OUT\_LO**

  internally **char OUT\_LO\[5\]**. Defines the logical input format demanded by the user. See [**MBK\_OUT\_LO**(1)](/MBK_OUT_LO/1.md) for a list of valid formats. By default its value is **"al"**.

- **MBK\_IN\_PH**

  internally **char IN\_PH\[5\]**. Defines the logical input format demanded by the user. See [**MBK\_IN\_PH**(1)](/MBK_IN_PH/1.md) for a list of valid formats. By default its value is **"ap"**.

- **MBK\_OUT\_PH**

  internally **char OUT\_PH\[5\]**. Defines the logical input format demanded by the user. See [**MBK\_OUT\_PH**(1)](/MBK_OUT_PH/1.md) for a list of valid formats. By default its value is **"ap"**.

- **MBK\_SCALE\_X**

  internally **long SCALE\_X**. Defines a scale factor for all coordinates, in order to be able to use files that works with half lambda rules for example. Parsers, drivers and genlib's macros use it extensivly. Its value is ten by default.

- **MBK\_IN\_FILTER**

  internaly **IN\_FILTER. Filter string for reading compressed Alliance files.** **It has no value by default, means no filter is used.**

- **MBK\_OUT\_FILTER**

  internaly **OUT\_FILTER. Filter string for writing compressed Alliance files.** **It has no value by default, means no filter is used.**

- **MBK\_FILTER\_SFX**

  internaly **FILTER\_SFX. Extention of compressed files.** **It has no value by default, means no filter is used.**

## EXAMPLE

```
#include "mut.h"
#include "mlo.h"
lofig_list ∗load_fig(name)
char ∗name;
{
	mbkenv(); /∗ make sure the good environnement is used ∗/
	return getlofig(name, 'A');
}
```

## SEE ALSO

**mbk**(1), [**genlib**(1)](/genlib/1.md), [**loadlofig**(3)](/loadlofig/3.md), [**loadphfig**(3)](/loadphfig/3.md), [**savelofig**(3)](/savelofig/3.md), [**savephfig**(3)](/savephfig/3.md), [**isvdd**(3)](/isvdd/3.md), [**isvss**(3)](/isvss/3.md), [**concatname**(3)](/concatname/3.md), [**nameindex**(3)](/nameindex/3.md).
