format_code
Reformat C source code by re-indenting based on brace depth, removing trailing whitespace, and collapsing blank lines. Returns consistently formatted code.
Instructions
Reformat C source: re-indent by brace depth, tidy trailing whitespace, and collapse blank-line runs. Dependency-free; returns the formatted code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | C source code. | |
| indent | No | Spaces per level (default 4). |