---
name: "tickit_penattr_name"
section: "3"
platform: "linux"
package: "libtickit-dev"
version: "0.4.3-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/tickit_penattr_name"
---

# tickit\_penattr\_name(3)

return the name of a pen attribute

## NAME

tickit\_penattr\_name - return the name of a pen attribute

## SYNOPSIS

```
#include <tickit.h>

const char * tickit_penattr_name(TickitPenAttr attr);
TickitPenAttr tickit_penattr_lookup(const char * name);
```

Link with *-ltickit*.

## DESCRIPTION

**tickit\_penattr\_name**() returns the name of the given pen attribute. These names are the lowercase strings given in [**tickit\_pen**(7)](/tickit_pen/7.md).

**tickit\_penattr\_lookup**() returns the attribute constant for a given name. If the name is not recognised then -1 is returned.

## RETURN VALUE

**tickit\_penattr\_name**() returns a constant string pointer. **tickit\_penattr\_lookup**() returns an attribute constant or -1.

## SEE ALSO

[**tickit\_pen**(7)](/tickit_pen/7.md), [**tickit**(7)](/tickit/7.md)
