An information filed in the Circuit Court of Charles Mix County, November 25, 1957, charged the defendant with the crime of escape from prison. The defendían! was also Charged with having been previously convicted on specific dates in 'the Circuit Court ,of Charles Mix County, South Dakota, with three named felonies. Defendant represented by counsel appeared before the court on December 2, 1957, and the transcript of the record upon arraignment shows the following:
“The Court: Mr. Medicine Horn, the charge contained in the information which has just been read in your hearing and of which you have just received a copy is what is known as a felony. It ■involves- imprisonment in the state penitentiary as punishment. * * * With that in mind and bearing in mli-nd your consultation and discussion With your counsel, to the -charge -as contained in the information how do you plead guilty or not guilty?
“The Defendant: Guilty.
“The Co-urt: The plea of guilty will be received and upon such plea the defendant i-s convicted of the offense as charged of escape.
“Now, Mr. Medicine Horn, -included in this information upon which you 'have just been arraigned, are -further allegations in substance that on three previous times you have- been convicted of offenses which constituted felonies.
“Now, those offenses, as you will understand, place you under the habitual criminal law. They don’t create or define any new offense. It only goes to the extent of the punishment which the court may -inflict. You understand that, do you, Mr. Medicine Horn?
*284 “The Defendant: Yes.
“The Court: Now, the fact that you have entered a plea of guilty to the charge of escape from the city jail of Wagner does not constitute an admission of these three previous offenses and as to ithem you are entitled to a trial before a jury at this term of court as to the question of identity. That is as to whether you are the same person who is named as having been convicted. In other words, the question is whether you have three Himes or two1 times or one time been previously convicted of felonies in the courts of this state. I am going to call your attention to each one of these allegations and I am going to ask you whether you are the periston. Now, you don’t need to admit it, if it is the truth and you desire to admit you may say ‘Yes1’, or you may say ‘No’, or you may utterly refuse answer in Which event it will be the duty to enter a plea of not guilty by the court. Then the question Will be for trial by a jury as to whether you are 'the isame person. I am aware that all of these convictions are alleged to have taken place right in Charles Mix County and so probably there isn’t any question about the identity, but we are going to go through this very formally in any event.
“Now, Mr. Medicine Horn, it is alleged that on the 27th day of November, 1950 you were convicted of the crime of grand larceny in this court, in Charles Mix County, South Dakota. I now inquire as to whether you are the same person who was at that time convicted of grand larceny in the Circuit Court of Charles Mix County?
“The Defendant: Yes, sir.”
The same inquires were made as to the other two prior convictions contained in the information and to which inquires the defendant answered affirmatively. The ,maxi *285 mum sentence provided by statute for the offense of which defendant was convicted is 'imprisonment in the State Penitentiary for two years. SDC 13.1227 as am. >by Chap. 31, Laws 1957. The court on the basis of the prior convictions sentenced defendant to a prison term of five years.
Defendant instituted a habeas corpus proceeding in the Circuit Court of Minnehaha County. The Court hearing the proceeding being of the opinion that defendant was legally confined entered judgment on December 1, 1958, denying the application. From this judgment defendant appeals. By his assignments of error defendant seeks reversal upon these grounds: (1) that 'the record shows merely that he is the person named in the allegations of the information as to the prior convictions and not that he is the same person who was previously convicted and (2) that the habitual criminal statute permitted the filing of a separate information after conviction and that an information setting forth first the principal charge and then the prior convictions is fatally defective.
It is well settled that a writ of habeas corpus is not a substitute for an appeal and that irregularities or errors which render the judgment merely voidable, and not void, cannot be collaterally inquired into. lit reaches only jurisdictional errors. State v. Pratt,
While inquiry on habeas -corpus is limited to- questions of jurisdiction, the authorities are not agreed as to what is comprehended within that term. Annotation: 76 A.L.R.
*286
468. This court has held that jurisdiction to render a particular judgment is as essential as is jurisdiction of the person and the subject matter. In re Taber,
SDC 13.0611, the habitual criminal statute, was in effect when judgment of imprisonment herein was rendered. It does not create an offense, but authorizes additional punishment, because of prior convictions, upon a person convicted of a subsequent offense. State v. DeMarsche,
The statute by its terms enables a state’s attorney to file a supplement information where he acquires know
*287
ledge or information of prior convictions after sentence or conviction for a subsequent offense. SDC 13.0611 (3); State v. Hillerud,
The record of the proceedings on sentence shows that defendant was informed as to 'his right to be tried by a jury as to the truth of the allegations as to whether he was the same person mentioned in the information as having been previously convicted. Admission of his identity with the person who dn each instance was previously convicted as alleged obviated the necessity of further proof. State ex red. Smith v. Jameson, supra. The sentence was within the power of the court unimpaired by any jurisdictional defect to impose. The application for writ was properly denied.
Judgment appealed from is affirmed.
