ERRHDR(1)
π ERRHDR π
okay bestie, so errhdr is a lil NCBI Tools User's Manual girly and her whole thing is turning a file of messages into a C header file. that's it, that's the job. she's a compiler-adjacent baddie and she ate. β¨
πΈ SYNOPSIS πΈ
errhdr [-2] [-s] msgfile [hdrfile]
π¦ DESCRIPTION π¦
so here's the tea π β errhdr reads a file that describes error codes and the messages that go with them, and then it produces a C header file. and where does that header go? either straight to standard output, or into hdrfile if you gave it one. main character energy, honestly.
the input file has a simple text-based format. no cap, it's giving very readable. one file β errmsg/valid.msg in the source tree β starts like this:
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.
and lowkey the best part: detailed descriptions are optional, and you don't need any "end" lines of any sort. not one. not ever. iconic behavior fr fr π
β¨ OPTIONS β¨
a summary of options is included below, bestie, as a lil treat π
-2β Code, subcode tuples-sβ Short subcode defines
π AUTHOR π
The National Center for Biotechnology Information. π
okay that's the whole page, bestie!! this one came from NCBI, dated 2001-10-05, and it's page ERRHDR(1) of the NCBI Tools User's Manual. go make some headers, you absolute legend π«Άππ
π¦ where this page comes from
- debian bookworm: ncbi-tools-bin 6.1.20170106+dfsg1-10 Β· public_domain
- debian trixie: ncbi-tools-bin 6.1.20170106+dfsg2-6 Β· public_domain
- ubuntu jammy: ncbi-tools-bin 6.1.20170106+dfsg1-9 Β· public_domain
- ubuntu noble: ncbi-tools-bin 6.1.20170106+dfsg2-2 Β· public_domain
- ubuntu questing: ncbi-tools-bin 6.1.20170106+dfsg2-6
- ubuntu resolute: ncbi-tools-bin 6.1.20170106+dfsg2-7 Β· public_domain
- ubuntu stonking: ncbi-tools-bin 6.1.20170106+dfsg2-7 Β· public_domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms