cybersecurity · intermediate · ~15 min · safe pentest lab
Format a Markdown finding for a report.
Implement int build_finding(char *out, int outsz, const char *title, const char *sev) writing ## <title>\n**Severity:** <sev>\n and returning its length (use snprintf).
#include <stdio.h>
int build_finding(char *out, int outsz, const char *title, const char *sev) {
/* TODO */
return 0;
}
Solve this exercise in the browser editor — compile and run against the test harness, no setup required.