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

# GETCPAT(3)

## NAME

**GETCPAT**, GENPAT Package

## SYNOPSIS

```
GETCPAT();
```

## DESCRIPTION

Return the date of the current pattern (in ps). The current pattern is set by AFFECT or INIT, GETCPAT will return the date of the last modified (affected or initialised) pattern.

## EXAMPLE

```
int t;
t = GETCPAT();
```

## SEE ALSO

[genpat(1)](/genpat/1.md), [pat(5)](/pat/5.md), [AFFECT(3)](/AFFECT/3.md)
