---
name: "tickit_pen_attrname"
section: "3"
platform: "linux"
package: "libtickit-dev"
version: "0.4.1-1"
release: "Debian 11 (Bullseye)"
platforms: ["linux"]
url: "https://new.carta.tech/tickit_pen_attrname"
---

# tickit\_pen\_attrname(3)

return the name of a pen attribute

## NAME

tickit\_pen\_attrname - return the name of a pen attribute

## SYNOPSIS

```
#include <tickit.h>

const char * tickit_pen_attrname(TickitPenAttr attr);
TickitPenAttr tickit_pen_lookup_attr(const char * name);
```

Link with *-ltickit*.

## DESCRIPTION

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

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

## RETURN VALUE

**tickit\_pen\_attrname**() returns a constant string pointer. **tickit\_pen\_lookup\_attr**() returns an attribute constant or -1.

## SEE ALSO

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