Section 491(1)(c) in The Code of Criminal Procedure, 1989 (1933 A. D.)
(c)that a prisoner detained in any jail situate within such limits be brought before the Court to be there examined as a witness in any matter pending or to be inquired into in such Court ;