The official text
Old and new, side by side
Code of Criminal Procedure, 1973
Section 342 Power to order costs
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.
Bharatiya Nagarik Suraksha Sanhita, 2023
Section 381 Power to order costs
Any Court dealing with an application made to it for filing a complaint under section 379 or an appeal under section 380, shall have power to make such order as to costs as may be just.
The texts are India Code’s. The amendment markers and footnotes of the official print are left out, so the old section reads as it stood when it was repealed; State amendments are not shown. The PDFs linked below carry the full history.