Section 338 in The Code of Criminal Procedure

Title: Procedure where lunatic detained is declared fit to be released

Description: (1) If such person is detained under the provisions of sub-section (2) of section 330, or section 335, and such Inspector-General or visitors shall certify that, in his or their judgment, he may be released without danger of his doing injury to himself or to any other person, the State Government may thereupon order him to be released, or to be detained in custody, or to be transferred to a public lunatic asylum if he has not been already sent to such an asylum; and, in case it orders him to be transferred to an asylum, may appoint a Commission, consisting of a Judicial and two medical officers. (2) Such Commission shall make a formal inquiry into the state of mind of such person, take such evidence as is necessary, and shall report to the State Government, which may order his release or detention as it thinks fit.

Title: Delivery of lunatic to care of relative or friend

Description: (1) Whenever any relative or friend of any person detained under the provisions of section 330 or section 335 desires that he shall be delivered to his care and custody, the State Government may, upon the application of such relative or friend and on his giving security to the satisfaction of such State Government, that the person delivered shall-- (a) be properly taken care of and prevented from doing injury to himself or to any other person; (b) be produced for the inspection of such officer, and at such times and places, as the State Government may direct; (c) in the case of a person detained under sub-section (2) of section 330, be produced when required before such Magistrate or Court, order such person to be delivered to such relative or friend. (2) If the person so delivered is accused of any offence, the trial of which has been postponed by reason of his being of unsound mind and incapable of making his defence, and the inspecting officer referred to in clause (b) of sub-section (1), certifies at any time to the Magistrate or Court that such person is capable of making his defence, such Magistrate or Court shall call upon the relative or friend to whom such accused was delivered to produce him before the Magistrate or Court; and, upon such production the Magistrate or Court shall proceed in accordance with the provisions of section 332, and the certificate of the inspecting office shall be receivable as evidence

Title: Procedure in cases mentioned in section 195

Description: (1) When, upon an application made to it in this behalf or otherwise, any Court is of opinion that it is expedient in the interests of Justice that an inquiry should be made into any offence referred to in clause (b) of sub-section (1) of section 195, which appears to have been committed in or in relation to a proceeding in that Court or, as the case may be, in respect of a document produced or given in evidence in a proceeding in that Court, such Court may, after such preliminary inquiry, if any, as it thinks necessary,--- (a) record a finding to that effect; (b) make a complaint thereof in writing; (c) send it to a Magistrate of the first class having jurisdiction; (d) take sufficient security for the appearance of the accused before such Magistrate, or if the alleged offence is non-bailable and the Court thinks it necessary so to do, send the accused in custody to such Magistrate; and (e) bind over any person to appear and give evidence before such Magistrate. (2) The power conferred on a Court by sub-section (1) in respect of an offence may, in any case where that Court has neither made a complaint under sub-section (1) in respect of that offence nor rejected an application for the making of such complaint, be exercised by the Court to which such former Court is subordinate within the meaning of sub-section (4) of section 195. (3) A complaint made under this section shall be signed,-- (a) where the Court making the complaint is a High Court, by such officer of the Court as the Court may appoint; 1[(b) in any other case, by the presiding officer of the Court or by such officer of the Court as the Court may authorise in writing in this behalf.] (4) In this section, "Court" has the same meaning as in section 195. 1. Subs. by Act 2 of 2006, s. 6, for clause (b) (w.e.f. 16-4-2006).

Title: Appeal

Description: (1) Any person on whose application any Court other than a High Court has refused to make a complaint under sub-section (1) or sub-section (2) of section 340, or against whom such a complaint has been made by such Court, may appeal to the Court to which such former Court is subordinate within the meaning of sub-section (4) of section 195, and the superior Court may thereupon, after notice to the parties concerned, direct the withdrawal of the complaint, or, as the case may be, making of the complaint which such former Court might have made under section 340, and, if it makes such complaint, the provisions of that section shall apply accordingly. (2) An order under this section, and subject to any such order, an order under section 340, shall be final, and shall not be subject to revision

Title: Power to order costs

Description: Any Court dealing with an application made to it for filing a complaint under section 340 or an appeal under section 341, shall have power to make such order as to costs as may be just