Section 351(1) in The Code of Criminal Procedure, 1989 (1933 A. D.)
(1)Any person attending a criminal Court, although not under arrest or upon a summons, may be detained by such Court for the purpose of inquiry into or trial of any offence of which such Court can take cognizance and which, from the evidence, may appear to have been committed, and may be proceeded against as though he had been arrested or summoned.