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

# GENLIB\_HEIGHT(3)

compute the height of a model

## NAME

GENLIB\_HEIGHT - compute the height of a model

## SYNOPSYS

```
#include <genlib.h>
long GENLIB_HEIGHT(cellname)
char ∗cellname;
```

## PARAMETERS

- *cellname*

  Name of the cell which height is needed

## DESCRIPTION

**HEIGHT** looks for the figure called *cellname* on memory, and then on disk. When found, the figure *abutment box* height is calculated, and returned.

## RETURN VALUE

*HEIGHT* returns a long int beeing the cell *abutment box* height.

## EXAMPLE

```
#include <genlib.h>
long cellHeight;
main()
{
	cellHeight = GENLIB_HEIGHT("mycell");
	GENLIB_DEF_PHFIG("grumf_z");
	GENLIB_PLACE("na2_y","ins1", NOSYM, 3 * cellHeight, 0L);
	/∗ Save all that on disk ∗/
	GENLIB_DEF_AB(0L, 0L, 0L, 0L);
	GENLIB_SAVE_PHFIG();
}
```

## SEE ALSO

[**genlib**(1)](/genlib/1.md), **GENLIB\_WIDTH**(3).
