---
name: "unw_regname"
section: "3libunwind"
platform: "linux"
package: "libunwind-dev"
version: "1.8.1-0.1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/unw_regname/3libunwind"
---

# unw\_regname(3libunwind)

## NAME

unw\_regname -- get register name

## SYNOPSIS

\#include \<libunwind.h\>\

const char \*unw\_regname(unw\_regnum\_t regnum);\

## DESCRIPTION

The unw\_regname() routine returns a printable name for  register regnum. If regnum is an invalid or otherwise  unrecognized register number, a string consisting of three question  marks is returned. The returned string is statically allocated and  therefore guaranteed to remain valid until the application terminates.

## RETURN VALUE

The unw\_regname() routine cannot fail and always returns a  valid (non-NULL) string.

## THREAD AND SIGNAL SAFETY

The unw\_regname() routine is thread safe as well as safe to  use from a signal handler.

## SEE ALSO

libunwind(3libunwind)

## AUTHOR

David Mosberger-Tang\
 Email: **dmosberger@gmail.com**\
 WWW: **http://www.nongnu.org/libunwind/**.
