cybersecurity · intermediate · ~15 min · safe pentest lab

Build a finding block

Format a Markdown finding for a report.

Challenge

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).

Starter code

#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.