> For AI agents: read the machine-readable documentation index at [https://corpuslaw.us/llms.txt](https://corpuslaw.us/llms.txt) or the single-file full reference at [https://corpuslaw.us/llms-full.txt](https://corpuslaw.us/llms-full.txt).

# G.S. 17-3 — Who may prosecute writ.

- **Citation**: G.S. 17-3
- **Node Type**: section
- **Jurisdiction**: North Carolina (state)
- **Code Body**: North Carolina General Statutes (compiled through S.L. 2026-30) (G.S.)
- **Official Source**: [https://www.ncleg.gov/EnactedLegislation/Statutes/HTML/BySection/Chapter_17/GS_17-3.html](https://www.ncleg.gov/EnactedLegislation/Statutes/HTML/BySection/Chapter_17/GS_17-3.html)
- **Canonical URL**: [https://corpuslaw.us/codes/north-carolina/chapter-17/article-2/section-17-3](https://corpuslaw.us/codes/north-carolina/chapter-17/article-2/section-17-3)
- **Semantic URL**: [https://corpuslaw.us/codes/north-carolina/chapter-17/article-2/section-17-3](https://corpuslaw.us/codes/north-carolina/chapter-17/article-2/section-17-3)

## Hierarchy

Chapter 17 > Article 2

## Text

§ 17-3.  Who may prosecute writ.
Every person imprisoned or restrained of his liberty within this State, for any criminal or supposed criminal matter, or on any pretense whatsoever, except in cases specified in G.S. 17-4, may prosecute a writ of habeas corpus, according to the provisions of this Chapter, to inquire into the cause of such imprisonment or restraint,  and, if illegal, to be delivered therefrom. (1868-9, c. 116, s. 1; Code, s. 1623; Rev., s. 1821; C.S., s. 2205.)
