Darole L. Carpenter, the appellant herein, filed his petition for writ of habeas corpus with the District Court of Canyon County, and the writ issued. The trial court, after a hearing on the factual issues presented by the pleadings, entered findings of fact, conclusions of law, and an order quashing the writ of habeas corpus theretofore issued, and this appeal resulted.
This court has heretofore considered the amended information with which appellant stands charged. State v. Carpenter,
Appellant by his assignments of error asserts the trial court erred in quashing the writ of habeas corpus, and in refusing to make the writ permanent and in not releasing him.
To fully appreciate appellant’s position on this appeal and to comprehend the import of his assertions it is essential to outline briefly the factual pattern of the record in the criminal action involved in the application for writ of habeas corpus.
Carpenter was charged with the crime of negligent homicide, by a complaint filed in a justice court of Canyon County on September 6, 1961, and a warrant of arrest issued. He was brought before the justice of the peace, and released on his own recognizance for his later appearance. An amended complaint was later filed, and a preliminary examination had. After the preliminary examination, the appellant was ordered bound over to the district court to stand trial, and he again was released from *570 custody on his own recognizance. On January 12, 1962, appellant appeared in district court with his counsel to answer the information filed by the prosecuting attorney, and requested the trial court to continue the cause and fix the amount of bond. The trial court granted the continuance, but refused to fix any amount of bail and also released the appellant from custody on his own recognizance. Thereafter a demurrer to the information was interposed, and sustained by the trial court. An amended information was filed, and a second demurrer interposed, which also was sustained by the trial court and'the State appealed to this court. The order sustaining this demurrer was reversed and the cause remanded. State v. Carpenter, supra.
On remand to the lower court, Carpenter refused to plead to the amended information and the trial court, pursuant to the provisions of I.C. §§ 19-1710 and 19-1720, entered a plea of not guilty for the defendant, denied the appellant’s request that bail be fixed, and appellant again was released on his own recognizance, and the cause was set for trial.
Appellant filed his petition for writ of habeas corpus asserting he had sought the order of the court to admit him to bail so that he could attain the status of actual confinement thereby to secure the writ of habeas corpus for the purpose of testing the sufficiency of the evidence at the preliminary hearing. He alleged that even though no bail was required he was still restrained of his liberty; he further alleged that the record taken at the preliminary hearing fails to show any probable cause to believe the offense of negligent homicide was committed by anybody, and failed to show there is probable cause as far as he was concerned. An order was entered granting the writ of habeas corpus, and the writ was issued, directed to C. Robert Yost, the prosecuting attorney of the county. The prosecuting attorney filed a return to the writ, alleging the appellant had never been in his custody, but that appellant had been released on his recognizance. In the return the prosecutor also alleged the facts concerning the filing of the amended information and procedures taken prior thereto. To this return, appellant filed his traverse to the return, admitting that he had been released on his own recognizance after his arrest and again after the preliminary hearing, and alleging that he was restrained of his liberty and freedom by the fact that the amended information was pending against him. He alleged the insufficiency of evidence to establish probable cause, and as an affirmative traverse, that he had no adequate remedy to obtain a review of the evidence adduced at the preliminary hearing.
. On the issues thus framed, the trial court had a hearing, receiving documentary and *571 oral evidence, after which the order appealed from was issued.
Appellant contends that he has no avenue open other than by this proceeding, whereby he can have a review by the trial court of the sufficiency of the evidence presented at the preliminary examination in order to test whether there was sufficient evidence to justify the justice of the peace in entering the order binding him over to the district court. He points to the cases of State v. Foell,
Upon the theory presented by appellant, it is claimed the trial court erred in failing to review the record taken at the preliminary examination notwithstanding that he was not actually in jail, asserting that within the meaning of I.C. §§ 19-4201, 19-4202 (1) he is “restrained of his liberty” by the amended information filed against him, requiring his attendance at all court proceedings required in a criminal action.
It is true that upon a writ of habeas corpus a trial court can go behind an order of commitment by a magistrate and inquire into the question of the sufficiency of the evidence to sustain a finding of probable cause. In re Baugh,
“If it appears on the return of the writ that the prisoner is in custody by virtue of process from any court of this state, or judge or officer thereof, such prisoner may be discharged in any of the following cases, subject to the restriction of the last section.
S}S ijc tfc s|c
“7. Where a party has been committed on a criminal charge without reasonable or probable cause.” (Emphasis added)
In this cause the committing magistrate ordered the appellant bound over to the district court on the charge set out in the complaint, but released him on his own recognizance. Throughout the proceedings in the district court, even though the defendant repeatedly sought to be placed under bond, the trial court continued his release on his own recognizance. It is the generally accepted rule in this country that a writ of habeas corpus will not lie when the petitioner is not under actual physical
restraint
or in actual custody. This rule has been followed in this state. State v. Olsen,
*572
Appellant points to the case of In re Rash,
“The court, unless good cause to the contrary is shown, must order the prosecution or indictment to be dismissed, in the following cases:
•t» «I? »}»
“2. If a defendant, whose trial has not been postponed upon his application, is not brought to trial at the next term of the court in which the indictment is triable, after it is found.”
In noting that the petitioner was not in actual custody the Court said:
“Since petitioner is not in actual custody, it is urged that the writ should be quashed in accordance with the statutes and prior holdings of this court (sections 19-4301, 19-4302, 19-4305, 19-4308, 19-4309, I.C.A.; Evans v. District Court,47 Idaho 267 ,275 P. 99 ; State v. Olsen,53 Idaho 546 ,26 P.2d 127 , and other authorities), and that mandamus is the proper remedy to compel a trial. The quashing of the writ herein would avail petitioner nothing, and, unless a trial were voluntarily undertaken by the trial court, he would have to resort to mandamus or some other proceeding to secure a trial. We believe that due to the exigencies of the times we are justified in the present instance in going directly to the essential point involved, namely, the right of'petitioner to a speedy trial.”
However, this court did not discharge the petitioner, but remanded the cause to the *573 trial court with directions to impanel an open or special venire, if necessary, and put the defendant upon trial of the charge, within thirty days.
In the Rash case this court was faced with a peculiar set of circumstances, and while it is indicative that actual confinement is not necessary for issuance of a writ of habeas corpus, that decision should not be expanded to authorize issuance of a writ of habeas corpus when there is absent the element of physical confinement or restraint of liberty. The actual result reached in the Rash case as set out in the reversal was to require the lower court to grant a prompt trial.
Appellant also urges us to follow the case decided by the Supreme Court of California, of In re Petersen,
* * * “The availability of the writ, however, does not depend on actual detention in prison. Where a person has been released on parole, this court has issued habeas corpus, pointing out that he was constructively a prisoner subject to restraint by the penal authorities. * * * Petitioner here is also constructively in custody and subject to restraint since the primary purpose of bail, whether before or after conviction, is practical assurance that he will attend upon the court when his presence is required. * * * Moreover, this court may admit a petitioner to bail pending determination of habeas corpus proceedings (Pen.Code, § 1476), and it would be unreasonable to hold that we lack jurisdiction to issue the writ merely because another court has released him on bail after the filing of his petition. We conclude that, under the circumstances present here, habeas corpus is an appropriate remedy even though bail has been allowed.”
We are not constrained to follow the views expressed by the Supreme Court of California in the Petersen case. The function of the writ of habeas corpus is to grant a person confined or restrained of his liberty an opportunity to question the
*574
lawfulness of his detention or restraint. 25 Am. Jur.Habeas Corpus § 10, p. 150; 39 C.J.S. Habeas Corpus § 9, p. 439. It is an extraordinary writ and one not to be used as an appellate remedy. Freeman v. State,
Appellant argues at length that the refusal of the trial court to examine the record on preliminary examination because he was not restrained of his liberty so as to authorize the full powers of the court granted under habeas corpus, is an unreasonably technical determination. This argument, however, overlooks the nature of this extraordinary writ and the functions to be served by it.
It is our conclusion that the trial court correctly quashed the writ. The order of the trial court is affirmed.
