North carolina constitution
Article I
Section 21

Every person restrained of his liberty is entitled to a remedy to inquire into the lawfulness thereof, and to remove the restraint if unlawful, and that remedy shall not be denied or delayed. The privilege of the writ of habeas corpus shall not be suspended.