The IPC 1860 was replaced by the BNS 2023 (in force 2024-07-01); no verified section mapping on file for Section 340 — confirm the corresponding provision (savings: Section 358, BNS 2023).
Whoever wrongfully restrains any person in such a manner as to prevent that person from proceedings beyond certain circumscribing limits, is said 'wrongfully to confine" that person. Illustrations (a) A causes Z to go within a walled space, and locks Z in. A is thus prevented from proceeding in any direction beyond the circumscribing line of wall. A wrongfully confines Z. (b) A places men with firearms at the outlets of a building, and tells Z that they will fire at Z if Z attempts to leave the building. A wrongfully confines Z.