---
name: "errhdr"
section: "1"
platform: "linux"
package: "ncbi-tools-bin"
version: "6.1.20170106+dfsg2-6"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/errhdr"
---

# errhdr(1)

produce a C header file from a set of messages

## NAME

errhdr - produce a C header file from a set of messages

## SYNOPSIS

**errhdr** \[**-2**\] \[**-s**\] *msgfile* \[*hdrfile*\]

## DESCRIPTION

**errhdr** reads a file describing error codes and corresponding messages and produces a C header file, either on standard output or in *hdrfile*.

The input file has a simple text-based format; one file (errmsg/valid.msg in the source tree) starts

```
MODULE valid
$$ SEQ_INST, 1
$^   ExtNotAllowed, 1
# This is a comment
A Bioseq "extension" is used for special classes of Bioseq. This class of
Bioseq should not have one but it does. This is probably a software error.
$^   ExtBadOrMissing, 2
This class of Bioseq requires an "extension" but it is missing or of the
wrong type. This is probably a software error.
```

(Detailed descriptions are optional, and no "end" lines of any sort are necessary.)

## OPTIONS

A summary of options is included below.

- **-2**

  Code, subcode tuples

- **-s**

  Short subcode defines

## AUTHOR

The National Center for Biotechnology Information.
