
200 S.E.2d 439 (1973)
20 N.C. App. 56
STATE of North Carolina
v.
Rosana TOMS.
No. 7329SC749.
Court of Appeals of North Carolina.
November 28, 1973.
*440 Atty. Gen., Robert Morgan, by Associate Atty. Gen., E. Thomas Maddox, Jr., Raleigh, for the State.
Deborah G. Mailman, Raleigh, for defendant-appellant.
BALEY, Judge.
The refusal of the trial court to consider the petition for a writ of error coram nobis upon its merits is affirmed. It is clear that this petition should be addressed to the district court in which the petitioner was tried. State v. Green, 277 N.C. 188, 176 S.E.2d 756. This rule is equally applicable whether the defendant was tried in superior court or in an inferior court. In Green the petitioner was convicted of nonsupport in the Reidsville Recorder's Court, an inferior court which has now been replaced by the district court. He petitioned the Rockingham County Superior Court for a writ of error coram nobis and the Supreme Court held that the petition should have been addressed to the Recorder's Court. The Court explained its decision as follows: "`The writ of error coram nobis "is brought for an alleged error of fact, not appearing upon the record, and lies to the same court, in order that it may correct the error, which it is presumed would not have been committed had the fact in the first instance been brought to its notice."'" Id. at 192, 176 S.E.2d at 759.
Under the common law a defendant could use the writ of error coram nobis "to challenge the validity of a conviction by reason of matters extraneous to the record." Id. at 191, 176 S.E.2d at 759. In North Carolina this writ has been superseded by the Post-Conviction Hearing Act, G.S. §§ 15-217 to 15-222, with respect to defendants who have been sentenced to prison. The writ is still available, however, to defendants who have been convicted but not imprisoned. State v. Green, supra. See also Dantzic v. State, 279 N.C. 212, 182 S.E.2d 563; State v. Daniels, 231 N.C. 17, 56 S.E.2d 2; In re Taylor, 230 N.C. 566, 53 S.E.2d 857.
No error.
BROCK C.J., and CAMPBELL, J., concur.
