---
name: "Signal"
section: "3"
platform: "macos"
package: "tcl"
version: "152"
release: "macOS 26.5"
platforms: ["macos"]
url: "https://new.carta.tech/Signal"
---

# Signal(3)

Convert signal codes

## NAME

Tcl\_SignalId, Tcl\_SignalMsg - Convert signal codes

## SYNOPSIS

```
#include <tcl.h>

const char *
Tcl_SignalId(sig)

const char *
Tcl_SignalMsg(sig)

```

## ARGUMENTS

A POSIX signal number such as **SIGPIPE**.

## DESCRIPTION

**Tcl\_SignalId** and **Tcl\_SignalMsg** return a string representation of the provided signal number (*sig*). **Tcl\_SignalId** returns a machine-readable textual identifier such as **Tcl\_SignalMsg** returns a human-readable string such as The strings returned by these functions are statically allocated and the caller must not free or modify them.

## KEYWORDS

signals, signal numbers
